model-writtenrun 9701 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Nov 2018 - Feb 2019 ยท 19 entries
- Peter Geoghegan opened the thread with #1, showing that planned nbtree heap-TID ordering changes exposed misleading partition DROP hints, different dependency descriptions, and inconsistent cascade counts.
- After rejecting an objsubid encoding as too brittle, Peter proposed a descending per-backend sequence column in pg_depend and posted its implementation in #6; Robert Haas had cautiously supported that approach in #5.
- Andrei Lepikhov offered an alternative that printed all internal dependencies in #7, but Peter objected to its less useful diagnostics in #8; Andrei subsequently reported successful testing of Peter's ordering patch in #11.
- Alvaro Herrera questioned whether INTERNAL_AUTO dependencies were masking an algorithmic bug in #13, and Tom Lane argued in #14 that dependency traversal should preserve semantics independently of catalog scan order.
- After investigating with system indexes disabled, Tom separated unstable report ordering, duplicate table-and-column reports, and ambiguous partition ownership in #23, then posted the independent subobject-reporting fix in #24.
- Tom committed #24 unchanged as 9194c4270b, suppressing redundant column reports while retaining the necessary separate deletion operations.
- Alvaro explained the three required partition-index deletion behaviors in #27, while Tom demonstrated in #30 that an unrelated extension dependency could incorrectly allow a child index to disappear while its parent remained.
- Tom addressed Peter's memory concerns by explaining that sorting would operate one dependency level at a time in #32, and Peter accepted explicit sorting in #33.
- Tom's descending-OID sorting patch #35 replaced the catalog tiebreaker approach and landed with comment-only edits as f1ad067fc3, leaving partition-owner diagnostics and shared-dependency output ordering unresolved.
- Peter tested the sorting commit with his nbtree work and posted #40, separating harmless DROP ROLE output changes from the two remaining partition-related failures and confirming that his pg_depend tiebreaker was no longer needed.
- Tom explored compatible replacements for INTERNAL_AUTO in #41, but further investigation in #46 uncovered inconsistent foreign-key dependencies and detached indexes that survived deletion of their indexed columns, making a safe PostgreSQL 11 backpatch impractical.
- The redesign in #50 added partition dependencies alongside ordinary dependencies, checked after traversal that a partition owner was also being deleted, and repaired propagation of flags after internal-owner recursion.
- Peter confirmed that #50 eliminated the remaining nbtree regression failures and requested clearer comments in #52; the same patch also exposed improper direct deletion of trigger catalog tuples.
- Alvaro supplied the separate trigger fix in #56, and Tom's review in #57 led to explanatory comments and a second command-counter increment in #64.
- After checking why partition constraints remain and how DETACH recreates action triggers, Tom accepted the trigger fix in #69, and Alvaro committed it with light comment edits as cb90de1aac and announced the push in #70.
- Tom replaced inferred partition ownership with explicit primary and secondary dependency types in #72, and Peter's documentation review in #74 led to the combined explanation proposed in #75.
- Alvaro suggested migrating existing PostgreSQL 11 dependency records with SQL in #79, but Tom rejected that route in #80 because installations could retain either representation and the server would have to support both.
- Tom committed #72 as 1d92a0c9f7, adding regression coverage, documentation, a catalog-version bump, and the final preference for extension dependencies described in #82.
- Tom and Peter declared this thread finished in #82 and #83, followed by Alvaro's thanks in #84; the partition redesign remained development-branch-only, shared-dependency output sorting was deferred, and Tom noted a separate problem still needing investigation.