1. SQL/PGQ Property Graphs
PostgreSQL adds support for SQL property graph queries.
This does not turn PostgreSQL into a native graph database. Instead, relational tables can be exposed as vertices and edges and queried using graph patterns.
Useful scenarios include:
REPACK combines functionality associated with VACUUM FULL and CLUSTER.
REPACK (CONCURRENTLY) can reorganize and compact a table while allowing reads and writes during most of the operation.
For large databases with table bloat, this can improve database maintenance options.
Autovacuum introduces several improvements:
These improvements can help PostgreSQL manage database maintenance more effectively.
The PostgreSQL optimizer gains several improvements:
These changes can reduce row processing, CPU utilization, memory usage, and disk I/O.
PostgreSQL introduces an extension for stabilizing and controlling planner decisions.
It is important to understand that pg_plan_advice does not allow arbitrary execution plans.
Instead, it constrains the choices available to PostgreSQL's normal query planner.
This feature is especially interesting for distributed architectures.
An application can wait until a standby has replayed WAL up to a selected Log Sequence Number (LSN).
Replication workflow:
WRITE → Primary → WAL → Replica → WAIT FOR → READ
This provides a cleaner way to implement read-your-writes behavior when read operations are sent to replicas.
PostgreSQL 19 adds sequence replication and makes logical replication easier to enable.
These improvements are useful for:
PostgreSQL 19 also introduces improvements in several performance-critical areas:
Additionally, LZ4 becomes the default TOAST compression method instead of pglz.
Just-In-Time (JIT) compilation remains available, but PostgreSQL 19 disables it by default because the previous cost-based activation model proved unreliable.
For me, PostgreSQL 19 is not about one headline feature.
It is about PostgreSQL becoming more capable in:
PostgreSQL 19 represents another important step in the evolution of the PostgreSQL ecosystem.
#PostgreSQL #PostgreSQL19 #Database #SQL #DatabaseArchitecture #Performance #DistributedSystems #Replication #SoftwareArchitecture #OpenSource
Armen Melkumyan<br>Technical / Solutions Architect