model-writtenrun 9797 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zhou Digoal reported that TRUNCATE failed on a permanent parent with temporary children in different sessions, although SELECT, UPDATE, and DELETE worked #1.
- Michael Paquier considered restricting mixed-persistence inheritance or leaving the behavior unchanged #2, while Amit Langote proposed matching other queries by silently skipping other sessions’ temporary children and supplied a patch #3.
- David Rowley identified compilation errors #6, and Michael questioned lock release and duplication of truncate_check_activity checks while requesting isolation tests #7; Amit corrected the patch #8 and explained that existing inheritance scans release those locks and that changing truncate_check_activity would complicate its interface #9.
- Michael accepted Amit’s reasoning and posted an expanded patch with a shared lockmode variable and isolation tests for DML, truncation, and blocking behavior across sessions #10.
- Digoal explained that the inheritance arrangement could emulate Oracle-style global temporary tables #11.
- Amit supplied a test delta that clarified relation names and made UPDATE/DELETE predicates target values belonging to both sessions, and also requested clearer implementation comments #13; Michael accepted these changes #14.
- Michael committed the expanded patch plus Amit’s delta as 1e504f01da, with final comment edits and regenerated expected output, and announced backpatches through PostgreSQL 9.4 #15; Amit’s closing thanks left no outstanding work in the thread #16.