model-writtenrun 7008 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Haiyang Li reported that concurrently detaching a hash partition leaves a check constraint referencing its former parent's OID, causing dump/restore failures, and proposed changing the constraint's function arguments or removing the constraint after detach #1.
- Álvaro Herrera recognized a previously reported bug and proposed preventing constraint creation altogether on master, while limiting the stable-branch change to hash partitions to preserve behavior other workloads might depend on #3.
- Haiyang Li, posting as ocean_li_996, supplied both branch-specific implementations with a regression test that detaches a hash partition, drops its parent, and inserts into the detached table #4.
- songjinzhou questioned whether removing constraint creation was safe #5; Haiyang explained that the existing partition constraint made the added constraint redundant during detachment #6, after which songjinzhou tested the patch and accepted the approach #7.
- Álvaro committed the submitted fix with comment and test simplifications; the supplied diff for b753be38a4 implements the stable-branch hash-only alternative from #4, which is the later matching patch despite the earlier design discussion and competing attribution in thread #72411.
- Álvaro confirmed that the fix had landed on all branches back to PostgreSQL 14 and explained that he also removed obsolete master regression-test lines expecting a newly created constraint, leaving no outstanding work stated in the thread #8.