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
..
Makefile Add support for incremental backup. 2023-12-20 09:49:12 -05:00
backup_manifest.c Add the system identifier to backup manifests. 2024-03-13 15:12:33 -04:00
basebackup.c Fix unnecessary padding in incremental backups 2024-04-14 20:37:49 +02:00
basebackup_copy.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
basebackup_gzip.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
basebackup_incremental.c Assorted minor cleanups in the test_json_parser module 2024-04-12 10:32:30 -04:00
basebackup_lz4.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
basebackup_progress.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
basebackup_server.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
basebackup_sink.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
basebackup_target.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
basebackup_throttle.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
basebackup_zstd.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
walsummary.c Revert "Temporary patch to help debug pg_walsummary test failures." 2024-03-20 11:34:00 -05:00
walsummaryfuncs.c Add new function pg_get_wal_summarizer_state(). 2024-01-11 12:41:18 -05:00