PostgreSQL 19 was released on November 19, 2026. The PostgreSQL Global Development Group highlights a new REPACK command, tools for influencing query plans, replication changes, and additions intended to simplify application development. The release is not a single performance switch: its value depends on the workload, maintenance problem, or consistency requirement an installation actually has. The clearest way to read this major version is as a set of more explicit controls. Operators gain a new route for reclaiming table space and prioritizing vacuum work; developers gain ways to coordinate reads across replicas and retrieve rows after conflicts; database teams get more visibility into locks, recovery, and asynchronous I/O. Those controls also have conditions that matter in production.
A new maintenance command, with real operating limits
PostgreSQL 19 introduces REPACK to rewrite a table, reclaim storage occupied by dead tuples, and optionally reorder rows using an index. The project describes it as a unified command for work previously associated with VACUUM FULL and CLUSTER; both older commands remain available for compatibility. Reclaiming space can help tables that have accumulated bloat, while physical clustering may benefit workloads that repeatedly read nearby indexed rows.
The CONCURRENTLY option is the operational distinction. Other transactions can use the table during most of the rewrite, rather than waiting behind an ACCESS EXCLUSIVE lock for the whole operation. This is not zero locking: the final file swap still needs a short ACCESS EXCLUSIVE lock. Concurrent REPACK is unavailable for partitioned and unlogged tables, requires a primary key or index-based replica identity, and needs free disk space at least equal to the table and its indexes for the new copy. PostgreSQL also warns that it is not MVCC-safe for transactions using snapshots taken before the operation. The feature changes the maintenance trade-off; it does not remove the need to plan it.
Sources: PostgreSQL 19 Released! · PostgreSQL 19 — Release Notes · REPACK — rewrite a table to reclaim disk space
Query-plan advice becomes a supported tool
The new pg_plan_advice module lets administrators describe, reproduce, and alter selected planner decisions through a small advice language. It is intended for cases where a team has evidence that a particular plan is preferable or wants to test an alternative. EXPLAIN can show generated advice, making the plan choice easier to inspect.
The companion pg_stash_advice extension stores advice against query identifiers and applies it when matching queries are planned. That can make a targeted correction available without changing application SQL. But this is not a universal hint system: advice can only constrain choices the planner considers viable, and it cannot control every planning area. The documentation warns that a plan that worked for one data distribution can become poor as data changes. Stored advice also uses shared memory and may add planning overhead. These controls are meant for selective use, not guaranteed performance gains.
Sources: PostgreSQL 19 Released! · PostgreSQL 19 — Release Notes · pg_plan_advice — help the planner get the right plan · pg_stash_advice — store and automatically apply plan advice
Replication gains clearer consistency controls
PostgreSQL 19 adds WAIT FOR LSN, allowing a session on a standby to wait until a target write-ahead log position has been written, flushed, or replayed. In standby_replay mode, the command waits until the WAL has been applied. An application can retain the LSN for a write on the primary and wait for that point on a read replica before issuing a read that must see its own write. This provides a database-level building block for a common consistency problem in asynchronous replication.
WAIT does not make an asynchronous standby synchronous or eliminate replication lag. The client or connection pool must know the target LSN and handle timeouts or promotion events. PostgreSQL also says to run WAIT before statements that acquire locks, because waiting while holding a lock can interfere with recovery. Version 19 can also automatically enable logical replication when wal_level is set to replica, reports the effective WAL level, and adds logical replication of sequence values. These changes simplify some tasks without making replication configuration irrelevant.
Sources: PostgreSQL 19 Released! · PostgreSQL 19 — Release Notes · WAIT — wait for WAL to reach a target LSN
Application code and data movement get smaller conveniences
INSERT ... ON CONFLICT DO SELECT adds a direct form of the get-or-create pattern. When an insert encounters a conflicting row, the statement can use RETURNING to select and return that existing row, with optional row locking. This can remove a separate read after an insert conflict and, in suitable flows, avoid an extra network round trip. Applications still need the right unique constraint, privileges, and conflict behavior.
COPY TO can now emit JSON, including a single JSON array through FORCE_ARRAY, and can export partitioned tables directly. COPY FROM gains additional input-handling options, including setting invalid values to NULL, while text and CSV loading paths receive SIMD performance work. SQL/JSON path gains string methods, and several window functions can use IGNORE NULLS or RESPECT NULLS. These additions matter to ingestion pipelines and systems that transform data inside the database.
Sources: PostgreSQL 19 Released! · PostgreSQL 19 — Release Notes · INSERT — create new rows in a table · COPY — copy data between a file and a table
Maintenance and observability are broader themes
The release notes describe improvements beyond the headline commands. Autovacuum can process table indexes with parallel workers and uses a scoring system to prioritize tables. PostgreSQL can automatically adjust I/O worker counts within new minimum and maximum settings when asynchronous I/O uses worker mode. The project also reports faster foreign-key checks and further planner and execution optimizations, but these are areas of improvement, not a speedup guarantee for every workload.
Operators get more ways to see what the server is doing. New views cover lock-type statistics, recovery status, autovacuum priority, and REPACK progress; EXPLAIN ANALYZE gains an IO option for asynchronous I/O activity, while WAL reporting includes full-page image bytes. These details can help teams connect a slow query or maintenance backlog to a resource or server state. They are most useful against a workload's own baseline, not as a substitute for one.
Sources: PostgreSQL 19 Released! · PostgreSQL 19 — Release Notes
Compatibility changes belong in the release story
PostgreSQL 19 changes defaults and compatibility behavior. Just-in-time compilation is disabled by default because the cost estimates used to decide when to invoke it were considered unreliable; installations running many large analytical queries may need to enable JIT deliberately. When PostgreSQL is built with LZ4 support, LZ4 becomes the default TOAST compression method. The server also forces standard_conforming_strings on, which affects older dumps created with it off. The release warns after successful MD5 password authentication and removes RADIUS authentication support.
A move from an earlier major release is a migration project, not a minor update: the official notes describe dump and restore, pg_upgrade, or logical replication as migration paths. Teams will need to assess extensions, authentication, configuration, replication topology, and application assumptions against the full incompatibility list. PostgreSQL 19's central promise is more control over maintenance, planning, replication, and data workflows. Whether those controls matter to a particular system depends on its workload and operational constraints, not the version number alone.
Sources: PostgreSQL 19 Released! · PostgreSQL 19 — Release Notes