Add archive_mode to prevent unarchived WAL on permanent primary failure

Edit
ID 6177
Title Add archive_mode to prevent unarchived WAL on permanent primary failure
CI (CFBot) Summary
Stats (from CFBot) Patch version: v2, Patch count: 2, First patch: +152−35, All patches: +805−43
Tags Physical Replication
Created 2025-10-29 08:16:23
Last modified 2026-02-13 06:55:30 (6 days ago)
Latest email 2026-02-12 08:53:02 (1 week ago)
Status
PG19-Final (2026-03-01 – 2026-03-31): Needs review
PG19-4 (2026-01-01 – 2026-01-31): Moved to different CF
PG19-3 (2025-11-01 – 2025-11-30): Moved to different CF
Target version 19
Authors Andrey Borodin (x4m)
Reviewers Become reviewer
Committer
Links
Emails
Streaming replication and WAL archive interactions
First at 2014-12-12 13:46:51 by Heikki Linnakangas <hlinnakangas at vmware.com>
Latest at 2026-02-12 06:56:10 by Andrey Borodin <x4mmm at yandex-team.ru>
Latest attachment (0001-Add-archive_mode-always-option.patch) at 2015-05-13 17:23:59 from Heikki Linnakangas <hlinnaka at iki.fi>
    Attachment (0001-Add-archive_mode-always-option.patch) at 2015-05-13 17:23:59 from Heikki Linnakangas <hlinnaka at iki.fi> (Patch: Yes)
    Attachment (v3-0001-Make-WAL-archival-behave-more-sensibly-in-standby.patch) at 2015-05-11 16:00:13 from Heikki Linnakangas <hlinnaka at iki.fi> (Patch: Yes)
    Attachment (0002-At-promotion-archive-last-segment-from-old-timeline-.patch) at 2015-05-08 13:21:18 from Heikki Linnakangas <hlinnaka at iki.fi> (Patch: Yes)
    Attachment (v2-0001-Make-WAL-archival-behave-more-sensibly-in-standby.patch) at 2015-04-16 11:57:03 from Heikki Linnakangas <hlinnaka at iki.fi> (Patch: Yes)
    Attachment (0001-Make-WAL-archival-behave-more-sensibly-in-standby-mo.patch) at 2014-12-19 20:56:40 from Heikki Linnakangas <hlinnakangas at vmware.com> (Patch: Yes)
[PATCH] Add archive_mode=follow_primary to prevent unarchived WAL on standby promotion
First at 2025-10-23 16:25:04 by Andrey Borodin <x4mmm at yandex-team.ru>
Latest at 2026-02-12 08:53:02 by Andrey Borodin <x4mmm at yandex-team.ru>
Latest attachment (v2-0001-inproduce-general-polling-functions-for-TAP-tests.patch) at 2025-12-22 14:10:30 from Roman Khapov <rkhapov at yandex-team.ru>
    Attachment (v2-0001-inproduce-general-polling-functions-for-TAP-tests.patch) at 2025-12-22 14:10:30 from Roman Khapov <rkhapov at yandex-team.ru> (Patch: Yes)
    Attachment (v1-0001-Add-archive_mode-follow_primary-to-prevent-WAL-lo.patch) at 2025-10-23 16:25:04 from Andrey Borodin <x4mmm at yandex-team.ru> (Patch: Yes)
History
When Who What
2026-02-13 06:55:30 Andrey Borodin (x4m) Attached mail thread 548AF1CB.80702@vmware.com
2026-02-03 08:10:44 Andrey Borodin (x4m) Moved from CF PG19-4 to CF PG19-Final
2025-12-29 11:23:05 Andrey Borodin (x4m) Moved from CF PG19-3 to CF PG19-4
2025-10-29 08:16:23 Andrey Borodin (x4m) Attached mail thread EBB5D20D-8630-4557-999F-999BAD90BCCF@yandex-team.ru
2025-10-29 08:16:23 Andrey Borodin (x4m) Created patch record
Edit