Hot standby
Read-only queries on a standby during recovery: recovery conflicts, hot_standby_feedback, KnownAssignedXids and standby snapshots. Introduced in PostgreSQL 9.0.
Versions
- PostgreSQL 20 · worked-on · improved · minor
- PostgreSQL 19 · shipped · improved · minor · 3 commits · +85 / -19 lines
- PostgreSQL 18 · shipped · improved · minor · 1 commit · +38 / -13 lines
- PostgreSQL 17 · shipped · improved · minor · 1 commit · +28 / -48 lines
- PostgreSQL 16 · worked-on · improved · minor
- PostgreSQL 12 · worked-on · improved · minor
Threads
- Set 1s WaitLatch timeout if standby limit has expired in ResolveRecoveryConflictWithBufferPin
- [PATCH] Fix PITR pause bypass when initial XLOG_RUNNING_XACTS has subxid overflow
- walreceiver: stale hot_standby_feedback xmin on primary when wal_receiver_status_interval = 0 (PG16 and later)
- Snapshot related assert failure on skink
- Disable startup progress timeout during standby WAL replay
- fix special case during recovery for hot_standby=off
- Hot Standby: missing snapshot conflicts in CREATE INDEX, rewrite, hash
- [PATCH] standby: Clarify recovery conflict comment
- Deadlock detector fails to activate on a hot standby replica
- Reject access to unlogged tables in contrib modules
- Fix recovery conflict canceling the startup progress timeout
- Bogus recovery conflicts due to outdated XLogReceiptTime
- Reject COPY TO of unlogged relations during recovery
- [PATCH] Fix recovery connection detail in EXEC_BACKEND builds
- Snapshot export on a standby corrupts hint bits on subxact overflow
- Stabilize recovery conflict stats checks in 031_recovery_conflict.pl
- Recovery conflict resolution misses backends that import snapshots
- Reduce cleanup lock contention on standby replay
- [PATCH] Prevent repeated deadlock-check signals in standby buffer pin waits
- Hot standby accepts connections (giving wrong results) before consistency after crash reset
- TID recycling race during nbtree index-only scans that run on a standby
- Separate catalog_xmin from xmin in walsender hot standby feedback
- Add missing stats_reset column to pg_stat_database_conflicts view
- Refactor recovery conflict signaling a little
- hot standby failed in read pg_commit_ts
- Primary and standby setting cross-checks
- display hot standby state in psql prompt
- Queries that should be canceled will get stuck on secure_write function
- IPC/MultixactCreation on the Standby server
- IPC/MultixactCreation on the Standby server
- Extend documentation for pg_stat_replication.backend_xmin
- Parameter name standby_mode
- A failure in 031_recovery_conflict.pl on Cirrus CI Windows Server
- Document AccessExclusive lock behaviour on standbys
- BUG #18961: Race scenario where max_standby_streaming_delay is not honored
- backend_xmin is null in pg_stat_replication, although repl. slot change it
- rename pg_log_standby_snapshot
- Change log level for notifying hot standby is waiting non-overflowed snapshot
- doc: Mention clock synchronization recommendation for hot_standby_feedback
- Assert(TransactionIdPrecedesOrEquals(TransactionXmin, RecentXmin));
- Accept recovery conflict interrupt on blocked writing
- Visibility bug with prepared transaction with subtransactions on standby
- The 031_recovery_conflict.pl test might fail due to late pgstat entries flushing
- Test 031_recovery_conflict fails when a conflict counted twice
- broken tables on hot standby after migration on PostgreSQL 16 (3x times last month)
- BUG #17690: Nonresponsive client on replica can halt replication indefinitely
- broken reading on standby (PostgreSQL 16.2)
- Test 031_recovery_conflict.pl is not immune to autovacuum
- Undetected deadlock between primary and standby processes
- Replication conflicts not processed in ClientWrite
- pgsql: Prevent tuples to be marked as dead in subtransactions on standb
- BUG #18241: PushTransaction may cause Standby to execute ItemIdMarkDead
- BUG #18213: Standby's repeatable read isolation level transaction encountered a "nonrepeatable read" problem
- Locks on unlogged tables are locked?!
- Why is hot_standby_feedback off by default?
- max_standby_streaming_delay setting not cancelling query on replica
- Replace known_assigned_xids_lck by memory barrier
- Is RecoveryConflictInterrupt() entirely safe in a signal handler?
- How should we wait for recovery conflict resolution?
- awkward cancellation of parallel queries on standby.
- BUG #17846: pg_dump doesn't properly dump with paused WAL replay
- ***Conflict with recovery error***
- Slow standby snapshot
- failures in t/031_recovery_conflict.pl on CI
- Startup process on a hot standby crashes with an error "invalid memory alloc request size 1073741824" while replaying "Standby/LOCK" records
- pgsql: Add minimal tests for recovery conflict handling.
- xmin of slot is not moving | hot standby feedback sending old xmin.
- Any sense to get rid of known_assigned_xids_lck?
- [PATCH] Full support for index LP_DEAD hint bits on standby
- snapshot recovery conflict despite hot_standby_feedback set to on
- Bug in ProcArrayApplyRecoveryInfo for snapshots crossing 4B, breaking replicas
- Slow client can delay replication despite max_standby_streaming_delay set
- lastOverflowedXid does not handle transaction ID wraparound
- inefficient loop in StandbyReleaseLockList()
- Nicer error when connecting to standby with hot_standby=off
- Standby recovery conflicts: add information when the cancellation occurs
- Improve handling of parameter differences in physical replication
- Add Information during standby recovery conflicts
- Deadlock between backend and recovery may not be detected
- STANDBY_LOCK_TIMEOUT may not interrupt ProcWaitForSignal()?
- Optimization for hot standby XLOG_STANDBY_LOCK redo
- pgsql: Improve handling of parameter differences in physical replicatio
- vacuum_defer_cleanup_age inconsistently applied on replicas
- Some problems of recovery conflict wait events
- [PATCH] Replica sends an incorrect epoch in its hot standby feedback to the Master
- WIP: long transactions on hot standby feedback replica / proof of concept
- gist microvacuum doesn't appear to care about hot standby?
- pgsql: Check for conflicting queries during replay of gistvacuumpage()
- pgsql: Avoid duplicate XIDs at recovery when building initial snapshot
- Can I skip function ResolveRecoveryConflictWithSnapshot if setting hot_standby_feedback=on all the time
- Debian mips: Failed test 'Check expected t_009_tbl data on standby'
- out-of-order XID insertion in KnownAssignedXids
- BUG #15394: Conflict between recovery thread and client queries on a hot standby replica
- hot_standby_feedback vs excludeVacuum and snapshots
- Conflict between recovery thread and client queries on a hot standby replica
- Excessive CPU usage in StandbyReleaseLocks()
- BUG #14820: Standby crash with "could not access status of transaction" (for track_commit_timestamp)
- StandbyRecoverPreparedTransactions recovers subtrans links incorrectly
- hot_standby_feedback default and docs
- BUG #7809: Running pg_dump on slave w/ streaming replication fails if there are unlogged tables