Add archive_mode to prevent unarchived WAL on permanent primary failure

Log in to edit
ID 6177
Title Add archive_mode to prevent unarchived WAL on permanent primary failure
CI (CFBot) Needs rebase! Needs rebase since 3 months. Failing since 3 months.
Additional links previous successfully applied patch (outdated):
Stats (from CFBot) Unknown
Tags Physical Replication
Created 2025-10-29 08:16:23
Last modified 2026-10-02 08:43:15 (1 month ago)
Latest email 2026-07-31 10:23:51 (3 months ago)
Status
PG20-3 (2026-11-01 – 2026-11-30): Needs review
PG20-2 (2026-09-01 – 2026-09-30): Moved to different CF
PG20-1 (2026-07-01 – 2026-07-31): Moved to different CF
PG19-Final (2026-03-01 – 2026-04-09): Moved to different CF
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 20
Authors Andrey Borodin (x4m), Kirill Reshke (reshke)
Reviewers Log in to 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-07-31 10:23:51 by Andrey Borodin <x4mmm at yandex-team.ru>
Latest attachment (v8-0003-Guard-against-configuration-hazards-in-archive_mo.patch) at 2026-07-30 14:44:13 from Kirill Reshke <reshkekirill at gmail.com>
    Attachment (v8-0003-Guard-against-configuration-hazards-in-archive_mo.patch) at 2026-07-30 14:44:13 from Kirill Reshke <reshkekirill at gmail.com> (Patch: No)
    Attachment (v7-AB-edited-0001-Add-archive_mode-shared-for-coordinated.patch) at 2026-07-22 11:19:11 from Andrey Borodin <x4mmm at yandex-team.ru> (Patch: No)
    Attachment (v7-0001-Add-archive_mode-shared-for-coordinated-WAL-archi.patch) at 2026-07-22 06:07:43 from Kirill Reshke <reshkekirill at gmail.com> (Patch: No)
    Attachment (v6-0001-Add-archive_mode-shared-for-coordinated-WAL-archi.patch) at 2026-07-20 19:20:49 from Kirill Reshke <reshkekirill at gmail.com> (Patch: No)
    Attachment (v5_0001-Add-archive_mode-shared-for-coordinated-WAL-archiving.patch) at 2026-05-03 22:50:12 from Grigory Smolkin <smallkeen at gmail.com> (Patch: Yes)
    Attachment (v4-0001-Add-archive_mode-shared-for-coordinated-WAL-archi.patch) at 2026-02-12 06:56:10 from Andrey Borodin <x4mmm at yandex-team.ru> (Patch: Yes)
    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-10-02 08:43:15 Andrey Borodin (x4m) Moved from CF PG20-2 to CF PG20-3
2026-09-25 07:02:46 Kirill Reshke (reshke) Changed targetversion to 20
2026-08-07 15:05:52 Andrey Borodin (x4m) Changed authors to Andrey Borodin (x4m), Kirill Reshke (reshke)
2026-08-01 00:00:10 CFbot Moved from CF PG20-1 to CF PG20-2
2026-07-27 12:39:35 CFbot Patch needs rebase
2026-07-20 19:34:35 CFbot Patch does not need rebase anymore
2026-06-17 17:52:53 Andrey Borodin (x4m) Moved from CF PG19-Final to CF PG20-1
2026-06-04 08:10:25 CFbot Patch needs rebase
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
Log in to edit