pg_rewind
Tool resynchronizing a former primary with a promoted standby by copying only changed blocks. Introduced in PostgreSQL 9.5.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · shipped · improved · moderate · 2 commits · +257 / -35 lines
- PostgreSQL 18 · shipped · improved · minor · 1 commit · +81 / -76 lines
- PostgreSQL 16 · worked-on · improved · moderate
Threads
- Bug? pg_rewind produces unusable but starting database with standby recovery
- pg_rewind WAL segments deletion pitfall
- [BUG] pg_rewind: file sync bypass and findLastCheckpoint boundary crash
- pg_rewind: Fix buffer size passed when building WAL file name
- pg_rewind and hint bits leads to visibility corruption
- pg_rewind race condition just after promotion
- [BUG] Take a long time to reach consistent after pg_rewind
- Assert "target_wal_endrec == divergerec" in pg_rewind
- pg_rewind: Remove recovery at the start of rewind
- pg_rewind does not rewind diverging timelines
- pg_rewind: Skip vanished source files during traversal
- BUG #19477: pg_rewind does not rewind a diverging timeline
- Clarifying pg_rewind failure risks due to asynchronous file deletions
- Can we change pg_rewind used without wal_log_hints and data_checksums
- Re: Can we change pg_rewind used without wal_log_hints and data_checksums
- Making pg_rewind faster
- [PATCH] Fix pg_rewind false positives caused by shutdown-only WAL
- BUG #18575: Sometimes pg_rewind mistakenly assumes that nothing needs to be done.
- pg_rewind: Doc update for PostgreSQL 18
- pg_rewind with --write-recovery-conf option doesn't write dbname to primary_conninfo value.
- pg_rewind fails on Windows where tablespaces are used
- pg_rewind with cascade standby doesn't work well
- Avoid an odd undefined behavior with memcmp (src/bin/pg_rewind/pg_rewind.c)
- DETAIL: pg_rewind: servers diverged at WAL location 0/9000000 on timeline 1
- Clarify pg_rewind behaviour in case of no divergence
- BUG #18342: pg_rewind copy all files found in pg_wal source directory
- 003_extrafiles.pl test fails on Windows with the newer Perl versions
- Add checks in pg_rewind to abort if backup_label file is present
- pg_rewind: ERROR: could not fetch remote file "global/pg_control": ERROR: permission denied
- pg_rewind fails with in-place tablespace
- [pg_rewind] use the passing callback instead of global function
- pg_rewind: Skip log directory for file type check like pg_wal
- pg_rewind: warn when checkpoint hasn't happened after promotion
- pgsql: pg_rewind: Fix determining TLI when server was just promoted.
- pg_rewind succeed but postgresql showing error when trying to make standby with common ancestor
- BUG #17684: pg_rewind ---could not receive data from WAL stream: ERROR: requested WAL segment 00000005000000000
- BUG #17685: pg_rewind: error: unexpected result while fetching remote files: ERROR: could not open file ".s.PGS
- new option to allow pg_rewind to run without full_page_writes
- [Proposal] pg_rewind integration into core
- pg_rewind fails to detect timeline change
- PATCH: add "--config-file=" option to pg_rewind
- Supply restore_command to pg_rewind via CLI argument
- BUG #17457: pg_rewind fatal failure when $PGDATA/log is a soft-link
- pg_rewind copies
- Using Test::More test functions for pg_rewind
- Two patches to speed up pg_rewind.
- pg_rewind fails if there is a read only file.
- BUG #16982: pg_rewind cannot deal with configuration files (postgresql.conf) located outside data directory
- pg_rewind restore_command issue in PG12
- BUG #16783: pg_rewind: option -c does not work when configuration files are outside data directory
- Corner-case bug in pg_rewind
- Refactor pg_rewind code and make it work against a standby
- Concurrency issue in pg_rewind
- Dubious code in pg_rewind's process_target_file()
- pg_rewind is not crash safe
- Re: Don't choke on files that are removed while pg_rewind runs.
- [Patch] pg_rewind: options to use restore_command from recovery.conf or command line
- pg_rewind docs correction
- Two pg_rewind patches (auto generate recovery conf and ensure clean shutdown)
- Statement timeout in pg_rewind
- Data-only pg_rewind, take 2
- suspicious wording in pg_rewind docs
- pg_rewind is failing on PG v12 BETA/PG HEAD
- [pg_rewind] cp: cannot stat ‘pg_wal/RECOVERYHISTORY’: No such file or directory
- Add tablespace tap test to pg_rewind
- Switch TAP tests of pg_rewind to use role with only function permissions
- pg_rewind vs superuser
- reorder pg_rewind control file sync
- pg_rewind : feature to rewind promoted standby is broken!
- Simplify final sync in pg_rewind's target folder and add --no-sync
- BUG #14999: pg_rewind corrupts control file global/pg_control
- When pg_rewind success, the database can't startup
- [bug fix] pg_rewind creates corrupt WAL files, and the standby cannot catch up the primary
- Using base backup exclusion filters to reduce data transferred with pg_rewind
- [bug fix] pg_rewind takes long time because it mistakenly copies data files
- Scenario using pg_rewind
- Compile issue with glibc-2.27 (copy_file_range)
- WIP: Restricting pg_rewind to data/wal dirs
- [PATCH]make pg_rewind to not copy useless WAL files
- pg_rewind and replication slots
- copy_file_range is now a Linux kernel call
- copy_file_range() conflict between pg_rewind and libc
- Patch: restrict pg_rewind to whitelisted directories
- pg_rewind proposed scope and interface changes
- Proposal: pg_rewind to skip config files
- pgsql: pg_rewind: Fix some problems when copying files >2GB.
- Error while copying a large file in pg_rewind
- pg_rewind test race condition..?
- pg_rewind, a tool for resynchronizing an old master after failover