Restrict where INCREMENTAL.${NAME} files are recognized.
authorRobert Haas <[email protected]>
Thu, 18 Apr 2024 15:00:38 +0000 (11:00 -0400)
committerRobert Haas <[email protected]>
Thu, 18 Apr 2024 15:00:38 +0000 (11:00 -0400)
commit9e72f6bfae1707fca1a297db433f6145d582a1c2
tree5856a2ac3f97ea7e60bd6ab3e250cda557e784ab
parentd72d32f52d26c9588256de90b9bc54fe312cee60
Restrict where INCREMENTAL.${NAME} files are recognized.

Previously, they were recognized anywhere in an incremental backup
directory; now, we restrict this to places where they are expected to
appear. That means this code will need updating if we ever do
incremental backups of files in other places (e.g. SLRU files), but
it lets you create a file called INCREMENTAL.config (or something like
that) at the top level of the data directory and still have things
work.

Patch by me, per request from David Steele, who also reviewed.

Discussion: http://postgr.es/m/5a7817da-6349-4653-8056-470300b6e512@pgmasters.net
src/bin/pg_combinebackup/pg_combinebackup.c
src/bin/pg_combinebackup/t/005_integrity.pl