What's New in PostgreSQL 19: Architecture, Performance, and Distributed Systems

  • Home
  • What's New in PostgreSQL 19: Architecture, Performance, and Distributed Systems
image

What's New in PostgreSQL 19: Architecture, Performance, and Distributed Systems

1. SQL/PGQ Property Graphs

  • CategoryIT & Software
  • Views0
  • PublishedNovember 26, 2026
2 min read

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:

  • Fraud detection
  • Recommendation systems
  • Dependency analysis
  • Connected-data workloads

2. REPACK and REPACK CONCURRENTLY

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.

3. Smarter Autovacuum

Autovacuum introduces several improvements:

  • Parallel workers for index vacuuming.
  • A scoring system to prioritize tables that most need vacuuming or analyzing.

These improvements can help PostgreSQL manage database maintenance more effectively.

4. Better Query Optimization

The PostgreSQL optimizer gains several improvements:

  • Eligible NOT IN expressions can become ANTI JOINs.
  • More LEFT JOINs can become ANTI JOINs.
  • Memoize can be used for some ANTI JOINs.
  • Some aggregation can happen before joins.
  • Improved hash join handling of NULL keys.

These changes can reduce row processing, CPU utilization, memory usage, and disk I/O.

5. pg_plan_advice

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.

6. WAIT FOR and Read-Your-Writes

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.

7. Logical Replication

PostgreSQL 19 adds sequence replication and makes logical replication easier to enable.

These improvements are useful for:

  • Change Data Capture (CDC)
  • Database migrations
  • High Availability (HA)
  • Blue-green database transitions

8. Performance Improvements

PostgreSQL 19 also introduces improvements in several performance-critical areas:

  • Asynchronous I/O
  • Dynamic I/O workers
  • SIMD-accelerated COPY FROM
  • Foreign-key checks

Additionally, LZ4 becomes the default TOAST compression method instead of pglz.

9. JIT Is Disabled by Default

Just-In-Time (JIT) compilation remains available, but PostgreSQL 19 disables it by default because the previous cost-based activation model proved unreliable.

Final Thoughts

For me, PostgreSQL 19 is not about one headline feature.

It is about PostgreSQL becoming more capable in:

  • Query processing
  • Database operations
  • Replication
  • Performance optimization
  • Distributed-system workloads

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