TechNewsReel
Live

PostgreSQL 19 integrates native graph queries via SQL/PGQ standard

The upcoming release allows property graph queries over existing relational tables, eliminating the need for separate graph databases.

TechNewsReel Newsroom · September 4, 2026

PostgreSQL 19 is introducing native support for property graph queries by implementing the SQL/PGQ standard (ISO/IEC 9075-16:2023). This move allows developers to perform complex pattern-matching queries directly within the relational engine, removing the need for separate graph databases or costly data migrations.

Under the new implementation, property graphs are defined as views layered over existing relational tables. Because the graph semantics operate on top of the existing storage engine, users do not need to migrate data to a new format. The current version supports fixed-depth pattern matching, though variable-length path traversals—such as those using "*" or "+" operators—are planned for future releases. Beta 1 of the feature was released on June 4, 2026.

The end of the relational-graph trade-off

Historically, developers requiring graph capabilities in PostgreSQL relied on recursive Common Table Expressions (CTEs), which can be verbose and difficult to optimize. Alternatively, organizations deployed dedicated graph databases, a strategy that introduced significant operational overhead due to data duplication and the need for constant synchronization between the relational and graph stores.

By aligning with the ISO SQL:2023 Part 16 standard, PostgreSQL provides a portable, standardized method for handling graph-shaped data. This integration aims to solve the "80% use case," where the complexity of a dedicated graph database is unnecessary but the expressiveness of graph queries is required.

Industry implications

This shift removes a primary architectural trade-off for organizations managing social graphs, recommendation engines, and complex organizational hierarchies. By integrating these capabilities into the core SQL engine, companies can reduce their infrastructure footprint and operational complexity. Furthermore, the adherence to an ISO standard helps prevent vendor lock-in, ensuring that graph queries remain portable across compliant database systems.

What remains to be seen

While the core functionality is now in beta, the industry is watching for the finalization of the PostgreSQL 19 general availability release, which typically aligns with the project's annual cycle. Developers are specifically awaiting the introduction of variable-length path traversal to enable more dynamic graph analysis. Additionally, the performance impact and the evolution of indexing to support these new query patterns remain key areas for observation as the feature moves toward a stable release.

Sources

Get a notification when a big story breaks. A few a day at most — no spam.