Fix rare checksum failure in EXEC_BACKEND LocalProcessControlFile()

Edit
ID 5124
Title Fix rare checksum failure in EXEC_BACKEND LocalProcessControlFile()
CI (CFBot) Needs rebase! Needs rebase since 5 months. Failing since 5 months.
Additional links previous successfully applied patch (outdated):
Summary
Stats (from CFBot) Unknown
Tags Bugfix
Created 2024-07-15 03:36:36
Last modified 2026-10-02 02:59:48 (49 minutes ago)
Latest email 2026-05-06 10:31:28 (4 months ago)
Status
PG20-3 (2026-11-01 – 2026-11-30): Waiting on Author
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
PG19-2 (2025-09-01 – 2025-09-30): Moved to different CF
2025-03 (2025-03-01 – 2025-04-08): Moved to different CF
2025-01 (2025-01-01 – 2025-01-31): Moved to different CF
2024-11 (2024-11-01 – 2024-11-30): Moved to different CF
2024-09 (2024-09-01 – 2024-09-30): Moved to different CF
Target version
Authors Thomas Munro (macdice)
Reviewers Noah Misch (nmisch) Become reviewer
Committer
Links
Emails
race condition when writing pg_control
First at 2020-05-04 17:44:21 by "Bossart, Nathan" <bossartn at amazon.com>
Latest at 2026-05-06 10:31:28 by Alexander Korotkov <aekorotkov at gmail.com>
Latest attachment (v1-0001-Skip-pg_control-re-read-in-EXEC_BACKEND-sub-proce.patch) at 2026-05-06 10:31:28 from Alexander Korotkov <aekorotkov at gmail.com>
    Attachment (v1-0001-Skip-pg_control-re-read-in-EXEC_BACKEND-sub-proce.patch) at 2026-05-06 10:31:28 from Alexander Korotkov <aekorotkov at gmail.com> (Patch: No)
    Attachment (v2-0001-Fix-pg_control-corruption-in-EXEC_BACKEND-startup.patch) at 2026-02-02 14:34:47 from Álvaro Herrera <alvherre at kurilemu.de> (Patch: Yes)
    Attachment (v1-0001-Fix-pg_control-corruption-in-EXEC_BACKEND-startup.patch) at 2024-05-18 05:29:12 from Thomas Munro <thomas.munro at gmail.com> (Patch: Yes)
    Attachment (0003-Assert-that-ControlFileLock-is-held-within-UpdateCon.patch) at 2020-05-31 21:11:35 from "Bossart, Nathan" <bossartn at amazon.com> (Patch: Yes)
    Attachment (v1-0001-Assert-that-ControlFileLock-is-held-exclusively-i.patch) at 2020-05-26 19:30:54 from "Bossart, Nathan" <bossartn at amazon.com> (Patch: Yes)
    Attachment (0001-Fix-race-condition-that-could-corrupt-pg_control.patch) at 2020-05-22 04:51:47 from Thomas Munro <thomas.munro at gmail.com> (Patch: Yes)
    Attachment (v1-0001-Prevent-race-condition-when-writing-pg_control.patch) at 2020-05-04 17:44:21 from "Bossart, Nathan" <bossartn at amazon.com> (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-04-06 02:06:25 CFbot Patch needs rebase
2026-02-02 14:41:33 CFbot Patch does not need rebase anymore
2026-02-02 14:37:48 Álvaro Herrera (alvherre) Moved from CF PG19-4 to CF PG19-Final
2025-12-01 20:59:50 Thomas Munro (macdice) Moved from CF PG19-3 to CF PG19-4
2025-10-19 10:36:53 Álvaro Herrera (alvherre) Moved from CF PG19-2 to CF PG19-3
2025-09-04 14:14:19 CFbot Patch needs rebase
2025-09-02 05:25:26 CFbot Patch does not need rebase anymore
2025-07-24 15:44:33 Álvaro Herrera (alvherre) Moved from CF 2025-03 to CF PG19-2
2025-02-17 19:00:34 CFbot Patch needs rebase
2025-02-12 16:04:19 Álvaro Herrera (alvherre) Closed in commitfest 2025-01 with status: Moved to next CF
2024-12-10 06:45:18 Michael Paquier (michael-kun) Closed in commitfest 2024-11 with status: Moved to next CF
2024-10-05 09:31:08 Andrey Borodin (x4m) Closed in commitfest 2024-09 with status: Moved to next CF
2024-08-19 23:10:55 Noah Misch (nmisch) New status: Waiting on Author
2024-07-15 03:36:53 Thomas Munro (macdice) Changed reviewers to Noah Misch (nmisch)
2024-07-15 03:36:53 Thomas Munro (macdice) Changed authors to Thomas Munro (macdice)
2024-07-15 03:36:36 Thomas Munro (macdice) Attached mail thread 70BF24D6-DC51-443F-B55A-95735803842A@amazon.com
2024-07-15 03:36:36 Thomas Munro (macdice) Created patch record
Edit