We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3668240 commit 5698515Copy full SHA for 5698515
backup.c
@@ -110,6 +110,9 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
110
*/
111
current.tli = get_current_timeline(false);
112
113
+ if (current.backup_mode != BACKUP_MODE_DIFF_PTRACK)
114
+ pg_ptrack_clear();
115
+
116
/*
117
* In differential backup mode, check if there is an already-validated
118
* full backup on current timeline.
@@ -314,7 +317,8 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
314
317
}
315
318
316
319
/* Clear ptrack files after backup */
- pg_ptrack_clear();
320
+ if (current.backup_mode == BACKUP_MODE_DIFF_PTRACK)
321
322
/* Notify end of backup */
323
pg_stop_backup(¤t);
324
0 commit comments