Fix read/write races with pg_control file in case when postgres was compiled with DEXEC_BACKEND option

Edit
ID 6040
Title Fix read/write races with pg_control file in case when postgres was compiled with DEXEC_BACKEND option
CI (CFBot) Summary
Stats (from CFBot) Patch version: v1, Patch count: 1, First patch: +32−1, All patches: +32−1
Tags Bugfix
Created 2025-09-08 06:40:03
Last modified 2026-10-02 02:59:48 (51 minutes ago)
Latest email 2026-05-12 08:30:55 (4 months ago)
Status
PG20-3 (2026-11-01 – 2026-11-30): Needs review
PG19-Final (2026-03-01 – 2026-04-09): Moved to different CF
PG19-3 (2025-11-01 – 2025-11-30): Moved to different CF
Target version 19
Authors Maksim Melnikov (manaldush)
Reviewers Become reviewer
Committer
Links
Emails
Incorrect checksum in control file with pg_rewind test
First at 2025-09-04 15:18:30 by "Maksim.Melnikov" <m.melnikov at postgrespro.ru>
Latest at 2026-05-12 08:30:55 by "Maksim.Melnikov" <m.melnikov at postgrespro.ru>
Latest attachment (v1-0001-Inherit-pg_control-snapshot-into-EXEC_BACKEND-sub.patch) at 2026-04-21 12:12:58 from Alexander Korotkov <aekorotkov at gmail.com>
    Attachment (v1-0001-Inherit-pg_control-snapshot-into-EXEC_BACKEND-sub.patch) at 2026-04-21 12:12:58 from Alexander Korotkov <aekorotkov at gmail.com> (Patch: No)
    Attachment (v1-0001-Try-to-handle-torn-reads-of-pg_control-in-sub-pos.patch) at 2025-09-04 15:18:30 from "Maksim.Melnikov" <m.melnikov at postgrespro.ru> (Patch: Yes)
History
When Who What
2026-10-02 02:59:48 shihao zhong (zhong950419) Moved from CF PG19-Final to CF PG20-3
2026-01-08 01:43:50 Michael Paquier (michael-kun) Moved from CF PG19-3 to CF PG19-Final
2025-09-08 06:40:04 Maksim Melnikov (manaldush) Attached mail thread f59335a4-83ff-438a-a30e-7cf2200276b6@postgrespro.ru
2025-09-08 06:40:03 Maksim Melnikov (manaldush) Created patch record
Edit