model-writtenrun 9767 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexey Bashtanov asked whether temporary functions were supported and reported prepared transactions blocking temporary-object creation, plus suspected crashes or catalog corruption, in #1; he supplied blocking and duplicate-key reproductions in #3 and #6, but could not reproduce the crashes or corruption.
- Tom Lane traced the failures to uncommitted temporary-namespace creation and blocked session-exit cleanup, explaining that the problem affected temporary objects generally in #4; Alvaro Herrera raised namespace-reuse concerns and interactions with proposed ON COMMIT DROP support in #5.
- Michael Paquier proposed a transaction flag in #7, while Alvaro suggested making namespace creation independently visible in #9; Tom explained in #10 that this would not resolve creation, deletion, or locking of objects in an existing temporary namespace, establishing the need for broader PREPARE restrictions.
- Michael implemented that restriction in #12, using a namespace-access wrapper and additional DROP and LOCK tracking, with documentation and regression tests.
- Masahiko Sawada questioned the overlapping flags in #13 and found an uncovered CREATE EXTENSION path plus a current_schema corner case in #15; Michael retained separate flags for backpatch compatibility and confirmed that namespace creation through current_schema must also prevent PREPARE in #14 and #16.
- Michael added the extension check and regression test in #18, leaving a broader prohibition on temporary-schema extensions to separate discussion; Sawada checked the revised test and requested restoration of client_min_messages in #19.
- The final submission #20 incorporated test cleanup and current_schema coverage, and separated the backpatchable fix from an optional flag simplification for the development branch; Michael deferred that simplification because the existing relation flag also avoids unnecessary ON COMMIT DELETE work.
- Michael committed the first patch from #20 as c5660e0aa5 with minor comment edits and announced backpatching through PostgreSQL 10 in #21, where MyXactFlags was available; the thread ended with Sawada's acknowledgment in #22, leaving the flag simplification for separate discussion.