model-writtenrun 7076 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane attributed parallel-restore failures and slowdowns to missing data dependencies for partitioned tables and proposed that pg_dump emit dummy data objects depending on their children's data, accepting that existing archives would remain unaffected #1.
- Tom Lane submitted a draft using a distinct PARTITIONED DATA entry type, reported success in light testing, and highlighted compatibility, locking, and newly detected circular foreign-key dependency questions #2.
- Tom Lane then recognized that his reproducer exposed a PostgreSQL 18 not-null-constraint issue rather than necessarily the original scheduling problem, so he held the patch pending diagnosis and a reproducer on older releases #3.
- Ashutosh Bapat could not reproduce failures on PostgreSQL 17 and explained that index-attachment dependencies already ensure referenced data is loaded before foreign-key creation, while observing that referencing data can still load afterward #4.
- Dimitrios Apostolou clarified that his sole deadlock occurred on development master after the relevant not-null changes, supporting Tom Lane's suspicion of the same separate regression #5 #6 #7.
- Tom Lane accepted Ashutosh Bapat's dependency analysis, withdrew the backpatch proposal, and deferred the scheduling patch to PostgreSQL 19 as a performance improvement unless needed for the deadlock; Ashutosh subsequently reported further PostgreSQL 17 testing without deadlocks and agreed with that direction #8 #9.
- After this thread's final message, 11ff192b5b addressed the separate deadlock by skipping child-table not-null checks and locks when a suitable parent constraint exists; its implementation came from #589652 in thread #50206, with light diagnostic edits, while this thread's scheduling patch remained deferred #2 #8.