postgresql/src/bin
Michael Paquier 29f9423251 Fix backup manifests to generate correct WAL-Ranges across timelines
In a backup manifest, WAL-Ranges stores the range of WAL that is
required for the backup to be valid.  pg_verifybackup would then
internally use pg_waldump for the checks based on this data.

When the timeline where the backup started was more than 1 with a
history file looked at for the manifest data generation, the calculation
of the WAL range for the first timeline to check was incorrect.  The
previous logic used as start LSN the start position of the first
timeline, but it needs to use the start LSN of the backup.  This would
cause failures with pg_verifybackup, or any tools making use of the
backup manifests.

This commit adds a test based on a logic using a self-promoted node,
making it rather cheap.

Author: Kyotaro Horiguchi
Discussion: https://postgr.es/m/20210818.143031.1867083699202617521.horikyota.ntt@gmail.com
Backpatch-through: 13
2021-08-23 11:09:57 +09:00
..
initdb Work around portability issue with newer versions of mktime(). 2021-06-13 14:32:42 -04:00
pg_archivecleanup Translation updates 2021-05-10 14:32:18 +02:00
pg_basebackup Fix a couple of memory leaks in src/bin/pg_basebackup/ 2021-07-26 11:14:11 +09:00
pg_checksums Translation updates 2021-08-09 11:56:40 +02:00
pg_config Translation updates 2021-05-10 14:32:18 +02:00
pg_controldata Translation updates 2021-05-10 14:32:18 +02:00
pg_ctl Translation updates 2021-05-10 14:32:18 +02:00
pg_dump Translation updates 2021-08-09 11:56:40 +02:00
pg_resetwal Translation updates 2021-08-09 11:56:40 +02:00
pg_rewind Translation updates 2021-08-09 11:56:40 +02:00
pg_test_fsync Translation updates 2021-05-10 14:32:18 +02:00
pg_test_timing Translation updates 2021-05-10 14:32:18 +02:00
pg_upgrade Translation updates 2021-08-09 11:56:40 +02:00
pg_verifybackup Fix backup manifests to generate correct WAL-Ranges across timelines 2021-08-23 11:09:57 +09:00
pg_waldump pg_waldump: Fix bug in per-record statistics. 2021-03-23 09:54:38 +09:00
pgbench Don't depend on -fwrapv semantics in pgbench's random() function. 2021-06-28 12:40:37 -04:00
pgevent Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
psql Translation updates 2021-08-09 11:56:40 +02:00
scripts Translation updates 2021-08-09 11:56:40 +02:00
Makefile Rename pg_validatebackup to pg_verifybackup. 2020-04-12 11:26:05 -04:00