bugfix: nullified page shouldn`t be skipped by DELTA backup

This commit is contained in:
Grigory Smolkin
2018-10-10 11:37:12 +03:00
parent c90d578a67
commit a7329d9b81
2 changed files with 72 additions and 0 deletions
+2
View File
@@ -339,9 +339,11 @@ prepare_page(backup_files_arg *arguments,
}
/* Nullified pages must be copied by DELTA backup, just to be safe */
if (backup_mode == BACKUP_MODE_DIFF_DELTA &&
file->exists_in_prev &&
!page_is_truncated &&
page_lsn &&
page_lsn < prev_backup_start_lsn)
{
elog(VERBOSE, "Skipping blknum: %u in file: %s", blknum, file->path);