You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Upgrade Notes
There are no schema changes in 5.0.15.
Bug Fixes
When a standby was built while the primary was idle, the failover slot
worker kept each new slot copy temporary for as long as the primary stayed
idle. The copy started at the standby's own position, ahead of the
primary's slot, and an idle primary never moved its slot past that point.
A temporary copy is dropped at promotion, so after an unplanned failover
the promoted node had no slot and the subscriber failed with replication slot ... does not exist. A new copy now starts at the primary slot's restart_lsn, as PostgreSQL's own slot sync does, and is made permanent
on the same pass when the standby still has that WAL. A copy is created
only once the standby has received that position.
Where the standby could not decode a slot copy's WAL, the failover slot
worker could move an existing copy's restart_lsn past the end of the WAL
the standby had received. A promotion then left the slot pointing at WAL
the node never had, and until the standby caught up the worker logged synchronization would move it backward. The copy's restart_lsn now
stays where it is until the standby has received the position it would
move to.
After one failed connection to spock.failover_slots_database, the
failover slot worker synchronized slot copies without the consistent
snapshot check until the server was restarted, even when the cause was
temporary. The worker now tries again as soon as the database exists and
accepts connections. If connecting fails for another reason, it tries
again at once the first time and then after a wait of one to five minutes.
The worker is also restarted 15 seconds after it exits, down from 60.