pg_basebackup
Base backup tool and the BASE_BACKUP replication command: tar/plain formats, WAL streaming, -R recovery configuration and progress reporting. Introduced in PostgreSQL 9.1.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 18 · worked-on · improved · minor
- PostgreSQL 17 · shipped · improved · minor · 2 commits · +154 / -22 lines
Threads
- enhancing pg_basebackup speeds up to ~23Gbps (small fixes + io_uring/Direct I/O)
- Timing issue in pg_basebackup
- [PATCH] Fix off-by-one in -T tablespace mapping length check
- Ensure temporary files are unlinked on errors in pg_receivewal
- Fix resource leaks in pg_receivewal on LZ4 close failures
- [PATCH] basebackup: use sequential access advice for full-file reads
- pg_basebackup: check timeline history file write failures in ReceiveXlogStream()
- Possible race condition in pg_basebackup
- Support long tar paths and link targets using PAX
- Avoid truncated or zero-padded copies of replaced files in backups.
- [PATCH v1] Fix pg_basebackup long-path test on Windows
- BUG #19647: Difference in pg_basebackup behaviour between PostgreSQL <= 16 and >= 17 with pgactive extension
- pgsql: Move tar detection and compression logic to common.
- BUG #19452: heap-buffer-overflow in `pg_basebackup --format=tar --gzip`
- astreamer fixes
- astreamer_lz4: fix bug of output pointer advancement in decompressor
- clarification for pg_basebackup and major versions
- pg_basebackup and pg_switch_wal()
- Doc: Move standalone backup section, mention -X argument
- pg_basebackup restore
- Re: Doc: Move standalone backup section, mention -X argument
- Windows pg_basebackup unable to create >2GB pg_wal.tar tarballs ("could not close file: Invalid argument" when creating pg_wal.tar of size ~ 2^31 bytes)
- checksum verification code breaks backups in v16-
- BUG #18685: .pgpass is not enabled when running pg_basebackup on PostgreSQL 17.
- Allow specifying a dbname in pg_basebackup connection string
- pg_basebackup and error messages dependent on the order of the arguments
- BUG #18533: pg_basebackup uses out-of-bounds memory and a segment error occurs during backup
- BUG #18551: pg_basebackup uses out-of-bounds memory and a segment error occurs during backup
- RE:BUG #18533: pg_basebackup uses out-of-bounds memory and a segment error occurs during backup
- 010_pg_basebackup.pl vs multiple filesystems
- Missing information on '-X' in section 26.3.6.1.
- basebackups seem to have serious issues with FILE_COPY in CREATE DATABASE
- Automatic tablespace management in pg_basebackup
- Solaris tar issues, or other reason why margay fails 010_pg_basebackup?
- Have pg_basebackup write "dbname" in "primary_conninfo"?
- pg_basebackup: errors on macOS on directories with ".DS_Store" files
- [patch] pg_basebackup: mention that spread checkpoints are the default in --help
- pg_basebackup check vs Windows file path limits
- Add lasterrno setting for dir_existsfile()
- It is not clear from documentation when and how I should restore base backup
- Corresponding documentation page does not mention about `spread` mode
- Documentation does not mention that basebackup could not be used on newer major version
- pg_basebackup: Always return valid temporary slot names
- Error on help in /src/bin/pg_basebackup/pg_basebackup.c
- pg_basebackup application does not dump all database objects
- base backup vs. concurrent truncation
- allow_in_place_tablespaces vs. pg_basebackup
- pg_basebackup: Correct type of WalSegSz
- pg_basebackup fails with Could not stat file or directory "./.pg_hba.conf.un~"
- a very minor bug and a couple of comment changes for basebackup.c
- pg_basebackup: add test about zstd compress option
- pg_basebackup's --gzip switch misbehaves
- cross-platform pg_basebackup
- Avoid memory leaks during base backups
- pg_basebackup --create-slot-if-not-exists?
- moving basebackup code to its own directory
- Backup command and functions can cause assertion failure and segmentation fault
- Re: BUG #16866: pg_basebackup Windows Server 20160
- Trap errors from streaming child in pg_basebackup to exit early
- is the base backup protocol used by out-of-core tools?
- pg_basebackup WAL streamer shutdown is bogus - leading to slow tests
- Refactoring of compression options in pg_basebackup
- BUG #17345: pg_basebackup stucked for 2 hours before timeout
- pg_basebackup behavior on non-existent slot
- pg_basebackup behavior on non-existent slot
- Stale description for pg_basebackup
- BUG #16866: pg_basebackup Windows Server 2016
- pg_basebackup test coverage
- PostgreSQL 12: Cryptic documentation
- WIP/PoC for parallel backup
- improving basebackup.c's file-reading code
- tablespace_map code cleanup
- pg_basebackup in tar format with -Xs
- BUG #16440: pg_basebackup intermittently hangs waiting for input unless run with --checkpoint=fast option
- Roles for pg_basebackup
- design for parallel backup
- [PATHC] Fix minor memory leak in pg_basebackup
- pg_basebackup -F plain -R overwrites postgresql.auto.conf
- pgsql: Prevent running pg_basebackup as root
- Prevent pg_basebackup running as root
- pg_basebackup fails on databases with high OIDs
- pg_basebackup page need further clarification
- pg_basebackup ignores the existing data directory permissions
- v12 pg_basebackup fails against older servers (take two)
- BUG #16029: pg_basebackup - At least one WAL file is missing
- BUG #16032: pg_basebackup when running on Windows doesn't clean up on failure correctly
- Fix for Bug #16032
- pg_basebackup from REL_12_STABLE hands on solaris/sparch
- BUG #16003: pg_basebackup failed with error : directory "xxxxxxx" exists but is not empty
- basebackup.c's sendFile() ignores read errors
- pg_basebackup -F t fails when fsync spends more time than tcp_user_timeout
- Improve base backup protocol documentation
- BUG #15949: pg_basebackup failed(PG-12-Beta3)
- [PATCH] minor bugfix for pg_basebackup (9.6 ~ )
- pg_basebackup of local postgres with linked pg_xlog directory
- pg_basebackup against older server versions
- BUG #15636: PostgreSQL 11.1 pg_basebackup backup to a CIFS destination throws fsync error at end of backup
- BUG #15638: pg_basebackup with --wal-method=stream incorrectly generates WAL segment created during backup
- pg_basebackup, walreceiver and wal_sender_timeout
- add verbosity to pg_basebackup for sync
- Incorrect fsync handling in pg_basebackup's tar_finish
- behave of --create-slot option
- PATCH: Exclude temp relations from base backup
- PATCH: Exclude unlogged tables from base backups
- pg_basebackup: Missing newlines in some error messages
- pg_basebackup: Allow setting replication slots in recovery.conf even if wal-method is none
- Basebackups reported as idle
- reassure me that it's good to copy pg_control last in a base backup
- pg_basebackup --progress output for batch execution
- Exclude pg_internal.init from base backup
- pg_basebackup fails on Windows when using tablespace mapping
- Create replication slot in pg_basebackup if requested and not yet present
- pg_basebackup behavior on non-existent slot
- pg_basebackup throttling doesn't throttle as promised
- pg_basebackup error: replication slot "pg_basebackup_2194" already exists
- PATCH: Exclude additional directories in pg_basebackup