SQL/PGQ
SQL property graph queries: CREATE PROPERTY GRAPH and GRAPH_TABLE (SQL:2023 SQL/PGQ).
Versions
- PostgreSQL 20 · worked-on · improved · major
- SQL/PGQ: Support multi-pattern path matching in GRAPH_TABLE
- [PATCH] Rewrite undirected edge patterns in GRAPH_TABLE using UNION ALL
- [SQL/PGQ] Custom executor node for VLE
- Add support for label conjunction (&) in SQL/PGQ
- Add more tab=completion rules for DROP PROPERTY GRAPH
- [SQL/PGQ] Native executor for Graph query
- PostgreSQL 19 · reverted · new · major · 12 commits · +15.3k / -285 lines
- PostgreSQL 18 · worked-on · new · major
- PostgreSQL 17 · worked-on · new · major
Threads
- Storing Property Graphs like Views (as a serialized analyzed parse tree)
- [SQL/PGQ] Native executor for Graph query
- PGQ catalog representation and pg_dump support
- Locking and property graphs
- property graph and pg_dump
- Property graph, dependencies
- [PATCH] Rewrite undirected edge patterns in GRAPH_TABLE using UNION ALL
- SQL/PGQ: Support multi-pattern path matching in GRAPH_TABLE
- Add support for label conjunction (&) in SQL/PGQ
- Authorization semantics and candidate pruning in GRAPH_TABLE
- Fix GRAPH TABLE label and property error reporting
- Disallow outer-level and WHERE-clause aggregates in GRAPH_TABLE
- Vertex/Edge label and view
- GRAPH_TABLE pattern WHERE clause is not coerced to boolean
- SQL/PGQ: quantified path patterns unsupported in GRAPH_TABLE (19beta2/beta3) — known gap or on the roadmap?
- doc: Reformat SELECT queries using GRAPH_TABLE
- BUG #19637: pg_event_trigger_ddl_commands can't process GRANT ON PROPERTY GRAPH
- [PATCH] SQL/PGQ: Fix inferred property graph keys with INCLUDE columns
- Empty label expressions and views
- Limit GRAPH_TABLE path combinations to prevent memory exhaustion
- Wrong query result w/ propgraph single lateral col reference
- GRAPH_TABLE: aggregates/window/set-returning functions in COLUMNS crash the backend
- Add more tab=completion rules for DROP PROPERTY GRAPH
- doc: Add PROPERTY GRAPH to the access privilege tables
- PROPERTY GRAPH pg_dump ACL minimization
- Fix missing space before WHERE in `GRAPH_TABLE` deparse
- Remove unused headers in rewriteGraphTable.c
- [SQL/PGQ] Custom executor node for VLE
- BUG #19558: User-defined prefix operators "|" and "->" no longer parse in 19beta2 (SQL/PGQ grammar change)
- BUG #19559: ALTER TABLE SET EXPRESSION / ALTER TYPE fails on columns referenced by a property graph
- BUG #19548: Missing dependency between a graph edge and the related PK
- [Bug] Add the missing RTE_GRAPH_TABLE case to transformLockingClause()
- (SQL/PGQ) cache lookup failed for label
- BUG #19542: Boolean syntax in GRAPH_TABLE
- [PATCH] Resolve unknown-type literals in GRAPH_TABLE COLUMNS
- [Bug][patch]: After dropping the last label from a property graph element, invoking pg_get_propgraphdef() triggers an assertion failure
- SECURITY LABEL ON PROPERTY GRAPH: supported?
- (SQL/PGQ) Clean up orphaned properties when dropping a label
- Property graph: fix error handling when dropping non-existent label property
- Fix DROP PROPERTY GRAPH "unsupported object class" error
- [Bug]Assertion failure in LATERAL GRAPH_TABLE with multi-label pattern
- GRAPH_TABLE: lateral reference with label disjunction fails with "plan should not reference subplan's variable"
- Graph database developer meeting at pgconf.dev 2026
- SQL Property Graph Queries (SQL/PGQ)
- [SQL/PGQ] Early pruning for GRAPH_TABLE path generation
- [PATCH] Fix use-after-free of propgraph orphan static lists on xact abort
- [PATCH] Postpone PROPERTY GRAPH creation in pg_dump to POST-DATA when it depends on a unique constraint
- [PATCH] Clean up property graph error messages
- [Patch]Add Graph* node support to expression_tree_mutator
- Type of property graph
- [PATCH] Improve error message for graph variable references in subqueries within GRAPH_TABLE
- Bug: Missing check_stack_depth() in GRAPH_TABLE rewriter
- Bug: pg_get_viewdef() fails on GRAPH_TABLE views with lateral column references
- Bug: Missing collation assignment for GRAPH_TABLE COLUMNS expressions
- Typo fixes in Graph table files
- [Patch] Block ALTER TABLE RENAME COLUMN when column is used by property graph
- SQL/PGQ: All properties reference
- rewriteGraphTable: Fix missing RTEs in FROM clause by setting inFromCl=true
- some validate_relation_kind() tidying
- how to gate experimental features (SQL/PGQ)