Back to all databases

PostgreSQL SQL/PGQ

Native SQL:2023 property graph query support coming to PostgreSQL, exposing graph pattern matching through the GRAPH_TABLE construct over property graphs defined on existing tables. Property graphs are processed like views and executed as standard relational queries by the existing planner.

Overall rank
#83
First released
March 2026
License
PostgreSQL
Built with
C

Details

Vendor
PostgreSQL Global Development Group
Type
Property Graph
Category
Emerging
License
PostgreSQL
Language
C
Query Languages
SQL/PGQ
Protocols
PostgreSQL wire
Sources 4 references

Protocols PostgreSQL wire

SQL/PGQ (GRAPH_TABLE) is core PostgreSQL SQL syntax executed like any other query over the standard Postgres wire protocol; no separate transport.

  • The graph query part happens inside the GRAPH_TABLE construct. As far as the rest of the query is concerned, this acts like a table function in that it produces a computed table as output.
    PostgreSQL: Documentation: devel: 7.9. Graph Queries · reviewed 2026-08-02

License PostgreSQL

Confirms current value. SQL/PGQ is a built-in feature of core PostgreSQL, so it carries the same PostgreSQL License as the rest of the project.

  • PostgreSQL is released under the PostgreSQL License, a liberal Open Source license, similar to the BSD or MIT licenses.
    PostgreSQL: License · reviewed 2026-08-02

Released 2026-03

Date the SQL/PGQ patch was committed to PostgreSQL master, not a stable release: the feature is absent from the PostgreSQL 18 release notes and CREATE PROPERTY GRAPH has no page in the current documentation, so it ships in a future major version.

Language C

Confirms current value.