postgresql/src/backend/backup
Tomas Vondra cd4b6af620 Fix unnecessary padding in incremental backups
Commit 10e3226ba1 added padding to incremental backups to ensure the
block data is properly aligned. The code in sendFile() however failed to
consider that the header may be a multiple of BLCKSZ and thus already
aligned, adding a full BLCKSZ of unnecessary padding.

Not only does this make the incremental file a bit larger, but the other
places calculating the amount of padding did realize it's not needed and
did not include it in the formula. This resulted in pg_basebackup
getting confused while parsing the data stream, trying to access files
with invalid filenames (e.g. with binary data etc.) and failing.
2024-04-14 20:37:49 +02:00
..
backup_manifest.c
basebackup_copy.c
basebackup_gzip.c
basebackup_incremental.c
basebackup_lz4.c
basebackup_progress.c
basebackup_server.c
basebackup_sink.c
basebackup_target.c
basebackup_throttle.c
basebackup_zstd.c
basebackup.c Fix unnecessary padding in incremental backups 2024-04-14 20:37:49 +02:00
Makefile
meson.build
walsummary.c
walsummaryfuncs.c