model-writtenrun 5142 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrew Bille reported that RESET transaction_isolation inside a serializable transaction could trigger an assertion at commit, with a reproducer affecting multiple PostgreSQL branches #1.
- Dmitry Koval showed that SET transaction_isolation=DEFAULT had the same problem and supplied a targeted fix that invoked the isolation-level check hook during RESET #2.
- Masahiko Sawada generalized the fix to run check hooks for every GUC type and added regression tests; Dilip Kumar found string-memory and compiler-warning problems, Dmitry incorporated those fixes, and Masahiko added safeguards against freeing referenced extra data #3 #4 #7 #8.
- Tom Lane challenged the handling of cached extra data and the omission of RESET ALL, and raised related rollback concerns; he also explained that making every NO_RESET_ALL parameter ignore targeted RESET could break RESET ROLE and application security assumptions #9 #10 #13.
- Masahiko and Tom settled on a separate GUC_NO_RESET flag as a cheaper and safer approach, while recognizing compatibility risks for existing applications and backpatches #14 #15 #17 #18.
- Masahiko's first flag-based draft silently ignored RESET, but Tom requested an explicit error; the revised patch raised FEATURE_NOT_SUPPORTED, which Kyotaro Horiguchi accepted after questioning the SQLSTATE #19 #20 #21 #22 #25.
- Tom identified the same hazard in function-local settings whose values are restored after execution, so Masahiko extended the restriction to GUC_ACTION_SAVE and added a function regression case #24 #27.
- After a three-month gap, Justin Pryzby requested a regression check that NO_RESET implies NO_RESET_ALL, and Masahiko incorporated it in a refreshed patch #28 #29.
- Michael Paquier requested more room and better organization for GUC flags, pointed out misleading SAVE diagnostics, and asked about seed; Masahiko's September submission addressed those points and separated flag renumbering into a second patch #31 #33.
- Tom corrected the PL/pgSQL regression changes and improved the SAVE error wording, while proposing a less disruptive flag layout that retained property ordering and moved unit fields to higher bits #34 #37 #39.
- Michael reviewed the revised patch and requested documentation of the function-local restriction, while Tom confirmed that compatibility concerns ruled out backpatching; the final documentation retained its RESET-only description #35 #36 #41.
- Masahiko resubmitted the main patch with simplified function-local error wording, incorporating Tom's test corrections while leaving the separate renumbering component pending #40.
- Tom committed the RESET/SAVE restriction from #40 as 3853664265, making only light diagnostic and header-placement edits.
- Tom then committed the renumbering component last attached in #34 as 7ac918ada0, substantially revising it to keep single-bit property flags together below the unit fields.
- Tom announced that the changes were pushed and Masahiko acknowledged completion; both components landed on the development branch, with no backpatch or remaining patch work announced in the thread #43 #44.