From: YegorZ (@YegorZ) <noreply+YegorZ@github.com>
To: pgbackrest/pgbackrest <noreply+pgbackrest-pgbackrest@github.com>
Subject: [pgbackrest/pgbackrest] PR #2905: Preserve block incremental info only when prior file has a block map.
Date: Fri, 06 Nov 2026 10:34:08 +0000
Message-ID: <gh-pgbackrest-pgbackrest-2905@github.com> (raw)
When a file had the same size as the prior file but the prior file was not stored with block incremental, the zero block incremental values of the prior file were copied over the values calculated at manifest build time. The file was stored without block incremental even though it was eligible and no block map was written. With the default age map this happens to a file that had not been modified for four weeks or more when the full backup was taken and later changes without changing size.
Copy prior block incremental values only when the prior file has a block map. Otherwise keep the values calculated at build time when the file will be copied and zero them when it will not.
A file with no prior map that has a new timestamp but no content change is found to be unchanged after the block incremental filter has returned a map. Limit the assertion on the returned map to files with a prior map and zero the block incremental values of the file when it is referenced to the prior backup.