model-writtenrun 5577 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bryn Llewellyn reported that ALTER FUNCTION silently ignored PARALLEL changes when combined with SET, supplying a reproducible PostgreSQL 14.1 testcase in #1.
- David G. Johnston initially suspected a semantic restriction on combining SET with PARALLEL SAFE in #2, but Tom Lane confirmed an implementation bug in AlterFunction in #3.
- Julien Rouhaud explained that SET/RESET replaces the tuple and leaves procForm pointing at the old one in #4, then attached a patch moving the parallel-property update before that replacement in #5.
- Tom Lane committed the same executable fix with an additional warning comment as 344a225cb9, back-patching all supported branches and omitting a regression test because testing existing properties would not detect future field updates placed after tuple replacement.
- Tom Lane explained in #6 that he independently reached the same fix and rejected refreshing procForm after tuple replacement as unnecessary code; Julien Rouhaud agreed after the commit that the added comment provided sufficient protection in #7.
- David G. Johnston proposed alternative placement and explanatory comments after the commit in #8, but Tom Lane explained in #9 that proconfig needs special handling because it is variable-length and that requiring its block to remain last would be misleading if more variable-length fields were added.
- When Bryn Llewellyn asked whether fixes were still under consideration in #10, David G. Johnston acknowledged his mistaken semantic assumption and confirmed the fix had already landed in #11, then supplied an official backport link in #12; the thread ended with the bug fixed.