model-writtenrun 3300 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that adding a text column to a permanent table with another session's temporary inheritance child caused an assertion failure during TOAST creation, or a missing-file error without assertions #1.
- Tom Lane reproduced the failure through direct alteration and proposed rejecting all ALTER TABLE operations on another session's temporary tables, including inherited children, to avoid implementation-dependent behavior and interference with temporary-table optimizations #2; Andres Freund endorsed that policy before a patch was posted #3.
- Tom Lane submitted a wrapper around CheckTableNotInUse() that also rejects other sessions' temporary tables, preserving DROP TABLE's ability to clean up orphaned temporary schemas #4.
- In the final thread message, Tom Lane reported auditing other callers and declined broader refactoring and an isolation or TAP test because existing paths appeared covered and such a test would not detect missing checks in future paths; no subsequent patch review appears in the supplied thread #4.
- The submitted patch #4 landed unchanged apart from branch context in both listed candidates, b8efd756df and 7ed8ce8a46, whose commit messages specify backpatching to all supported branches; these represent the same fix.