model-writtenrun 5347 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The thread began with Robert Haas announcing removal of the relmap's 512-byte restriction by writing a replacement file and durably renaming it into place, with accompanying layout and capacity changes #1.
- Michael Paquier reported Windows CI crashes in durable_rename(), and Thomas Munro traced the permission-denied failures to other backends potentially keeping the destination relmap open #2 #3.
- Thomas Munro proposed acquiring RelationMappingLock before opening the relmap, then corrected his patch to close the file before releasing the lock so that no handle survives outside the protected interval #4 #5.
- Michael Paquier endorsed the locking change and reported three successful test runs; Robert Haas committed the revised patch with an explanatory Windows comment as a2e97cb2b6 #6 #7.
- Alvaro Herrera then reported that starting an existing cluster caused repeated failures because its 512-byte relmap no longer matched the expected 524-byte layout, and proposed a catalog-version bump to require initdb #8.
- Robert Haas reconsidered versioning the file, and Tom Lane recommended changing its magic number; Robert tried that approach but found it still produced repeated crashes with an invalid-data error #9 #10 #11 #12.
- Alvaro Herrera renewed the catalog-version proposal and suggested documenting the requirement, while Tom Lane identified broader relmap-corruption handling as a separate problem and continued to favor changing the magic number #13 #14.
- Robert Haas argued that a catalog-version bump would clearly explain the need for initdb whereas changing the magic number would merely replace one crash-loop diagnostic with another, and Tom Lane accepted that reasoning in the final message #15 #16.
- After that exchange, Robert Haas committed the one-line catalog-version bump as 5f858dd3be; both immediate fixes landed, while the suggested documentation and broader corruption-handling improvements were absent from these commits #13 #14.