Fix rare checksum failure in EXEC_BACKEND LocalProcessControlFile()

Edit
ID 5124
Title Fix rare checksum failure in EXEC_BACKEND LocalProcessControlFile()
Topic Bug Fixes
Created 2024-07-15 03:36:36
Last modified 2024-10-05 09:31:08 (1 month ago)
Latest email 2024-07-30 23:54:55 (3 months, 1 week ago)
Status
2024-11: Waiting on Author
2024-09: Moved to next CF
Target version
Authors Thomas Munro (macdice)
Reviewers Noah Misch (nmisch)Become reviewer
Committer
Links CFbot results (CirrusCI) CFbot GitHub
Checkout latest CFbot patchset Go to your local checkout of the PostgreSQL repository and run:
git remote add commitfest https://github.com/postgresql-cfbot/postgresql.git
git fetch commitfest cf/5124
git checkout commitfest/cf/5124
Emails
race condition when writing pg_control
First at 2020-05-04 17:44:21 by "Bossart, Nathan" <bossartn at amazon.com>
Latest at 2024-07-30 23:54:55 by Noah Misch <noah at leadboat.com>
Latest 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>
    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
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