model-writtenrun 1061 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Satyanarayana Narlapuram reported that WAIT FOR LSN inside PL/pgSQL DO blocks and procedures could leave a stale portal snapshot and crash on a subsequent statement, proposing snapshot-pointer cleanup and regression tests in #1.
- Alexander Korotkov questioned whether releasing snapshots owned by functions or procedures was safe and proposed forbidding nested WAIT FOR execution in #2; Xuneng Zhou identified pointer-clearing and test weaknesses and supported the snapshot-safety concern in #4.
- Satyanarayana switched to rejecting execution inside procedures in #5; Alexander explained that releasing snapshots could violate query consistency and recommended prohibiting function and procedure use for PostgreSQL 19, leaving possible safe procedure cases for PostgreSQL 20 in #6.
- Alexander posted a slight revision with an explicit isTopLevel check and procedure-rejection coverage in #7; Satyanarayana approved it in #8, and Xiaopeng Wang said it looked good while identifying a commit-message typo in #9.
- Xuneng moved the rejection before argument validation, clarified that DO blocks were also prohibited, added a DO-block test and documentation, and updated stale comments in #10.
- Alexander committed #10 as a8b61c23c5 with light edits, chiefly an error detail naming the prohibited contexts, and announced the push in #11; the crash fix was complete, while support for safe nested execution remained deferred.