model-writtenrun 377 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund opened the thread by questioning property-graph catalog representation and pg_dump dependency handling, then demonstrated a dump that created a graph before a composite type it required #1 #2.
- Andres expanded the findings to orphaned metadata after cascading drops, missing cache invalidation, insufficient dependencies for label/property associations, missing cast dependencies, and unrestorable graph/materialized-view cycles #3.
- Taha Naveed reproduced failure to dump whole-row properties, and Andrew Dunstan confirmed that problem while reporting missing ALTER target validation and potentially unbounded graph-path expansion; Andrew favored retaining pg_class integration for its existing infrastructure #4 #5.
- Ashutosh Bapat submitted dependency-transfer fixes for pg_dump and a WIP orphan-cleanup pass in deletion processing, deferring a general dependency mechanism to a future release; he also explained that pg_class supplies the shared table namespace required by SQL/PGQ #6.
- Ashutosh revised the repair series to invalidate caches after cascading drops and separate supporting refactoring and test clarification, while leaving the underlying cleanup approach intact #7.
- Ashutosh's examination of the standard raised unresolved questions about whether dropping a property should affect every object referencing the graph and how cascading function removal should preserve consistency across shared labels #8 #9.
- Melanie Plageman proposed reverting SQL/PGQ from PostgreSQL 19 on behalf of the release management team because dependency semantics and other design questions remained unsettled, while Sami Imseih's review objected to embedding graph-specific orphan planning in src/backend/catalog/dependency.c #10 #11.
- Andres accepted the shared-namespace justification for pg_class but found inadequate graph and element-table locking, unexplained lock modes, unknown-type crashes, incomplete whole-row handling, and missing privilege checks; these findings led him to support reverting the feature and question keeping it in master #12 #13 #14 #15.
- Sami demonstrated broken ALTER COLUMN TYPE handling, and Zsolt Parragi supplied additional, explicitly not yet fully verified reports involving privileges, inferred keys, inheritance, row locking, and dump behavior #17 #18.
- Robert Haas demonstrated that later DDL could invalidate conditions required when a graph was created and argued that the integrity model needed substantial work; Andres clarified that neither ordinary parsing nor view rewriting adequately protected element metadata #19 #20.
- Peter Eisentraut accepted reverting SQL/PGQ, Robert requested removal from both PostgreSQL 19 and master, and Peter implemented the development-branch revert as b1f106c80c with a corresponding stable-branch backport, then confirmed completion; neither attached repair series landed through this commit #21 #22 #23.
- After the revert, Ashutosh moved dependency redesign toward a separate discussion and accepted stronger ALTER locking, graph locking during dependent-object deletion, and element-table locks before metadata access #24 #25 #26.
- Ashutosh argued that missing cast/opfamily dependencies and some materialized-view cycles also affected existing PostgreSQL features, and deferred his whole-row deparsing, unknown-type resolution, and GRAPH_TABLE row-description fixes until SQL/PGQ was revived; he also identified privilege semantics as needing further investigation #27 #28 #31.
- Robert warned that dependencies alone cannot protect all creation-time assumptions, including ownership and later column changes, while Ashutosh defended explicit keys as declarative and PROPERTIES ALL COLUMNS as expanding only at creation time #30 #32 #33.
- The thread ended with SQL/PGQ still reverted and its repairs deferred to a future submission: Ashutosh proposed documenting standard-based behavior and revisiting ownership precedents, but Robert insisted that the gap between CREATE-time and ALTER-time invariants required deeper redesign than additional comments #34 #35 #36.