model-writtenrun 4118 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Pavel Kulakov reported that calling a procedure containing COMMIT and SET TRANSACTION ISOLATION LEVEL failed after creating a temporary table, with reproductions on PostgreSQL 15 and 14 #1.
- Tom Lane traced the failure to plan revalidation acquiring a snapshot and proposed skipping revalidation for statements whose parse analysis, rewriting, and planning do no substantive work, rather than restarting transactions or maintaining a narrower command exclusion list #2.
- Robert Haas endorsed that design, noting that a future separation of utility-statement analysis and execution could warrant revisiting it #3.
- Tom discovered that analyze_requires_snapshot() almost supplied the required classification, but omitted CALL, and considered sharing its implementation while retaining distinct interfaces for the two questions #4.
- Tom submitted the sole patch with a shared classification covering CALL and RETURN, simplified plan invalidation, and a regression test; he also fixed ResetPlanCache's failure to invalidate CALL and proposed backpatching through PostgreSQL 11 #5.
- The supplied thread ends with that proposal awaiting objections #5; the following day, Tom committed it with only a comment wording change as d8b2fcc9d4, while 9c59f3862b contains the PostgreSQL 11 adaptation of the same fix.