Image: linuxcompatible.orgThe PostgreSQL Global Development Group released PostgreSQL 19 on November 19, 2026, delivering a practical major version aimed at teams running mission-critical workloads. The release simplifies administration at scale: operators can reorganize bloated tables without taking applications offline, stabilize query plans that suddenly regress, and keep maintenance and replication in step with busy systems.
Core team member Jonathan Katz tied the release to the project's 30th year, saying organizations trust PostgreSQL with critical data and that version 19 continues that reliability focus by giving users new ways to manage workloads without disruption. Cloud and enterprise vendors moved quickly. EDB announced support the same day, and platforms such as Neon made PostgreSQL 19 available immediately.
The calendar is part of the story. Major releases have usually landed between mid-September and mid-October. PostgreSQL 19 was first aimed at October 29, then moved to November 19 after the project added a second release candidate on November 12 so fixes prepared for supported versions could ship in 19.0. Contributors have described how AI-assisted review made bugs easier to find, pulling time toward fixes that would otherwise have gone into feature review. Several ambitious items, including SQL/PGQ graph queries, online partition merge and split, and GROUP BY ALL, were deferred.
Online Table Reorganization With REPACK
Tables that see heavy updates and deletes accumulate unused space, known as bloat, which wastes disk and can slow queries. For years the in-core remedies were VACUUM FULL and CLUSTER. Both reclaim space, and CLUSTER can also reorder rows to match an index, but both take an exclusive lock and block access until they finish. Extensions such as pg_repack filled the gap for teams that could not afford a maintenance window.
Image: postgresql.orgPostgreSQL 19 introduces REPACK as the unified command. VACUUM FULL and CLUSTER remain available for compatibility. The plain form matches VACUUM FULL. REPACK with USING INDEX matches CLUSTER. The option operators have been waiting for is REPACK (CONCURRENTLY), which rebuilds the table while reads and writes continue for most of the operation.
- REPACK table_name reclaims space the way VACUUM FULL does.
- REPACK table_name USING INDEX index_name reorders rows along that index.
- REPACK (CONCURRENTLY) table_name keeps ordinary reads and writes running during the rewrite.
Concurrent mode captures intervening changes through logical decoding, then takes a brief ACCESS EXCLUSIVE lock only for the final swap of table and index files. During the rewrite it holds a SHARE UPDATE EXCLUSIVE lock, so it still blocks DDL, VACUUM, and another REPACK on the same table. Because it uses a replication slot, a long run can hold back WAL. Watch slot lag, rehearse on a staging system with realistic write rates, and do not treat concurrent repack as free. For most production databases, though, reclaiming bloat without scheduling downtime is the operational change that will matter most.
Query Plan Advice for Stable Performance
The planner usually picks an efficient plan, but plans change as data and statistics change, and a query that was fast for months can suddenly slow down. PostgreSQL has long resisted Oracle-style hints embedded in SQL. Version 19 adds a supported middle path through two contrib extensions rather than changing application text.
Image: heise.depg_plan_advice lets administrators describe, reproduce, and constrain planner choices with a small plan-advice language, such as preferring a particular scan or join method on a named relation. The companion extension, pg_stash_advice, stores that advice by query identifier and applies it automatically when a matching query is planned. A known bad plan flip can be corrected without a code deploy.
Use it as a scalpel, not a default. Applying advice has a cost, and a plan that was right last quarter can become the wrong plan as the table grows. Enable the extensions only where you need them, limit stashed advice to a handful of critical statements, and review it after large data changes, statistics refreshes, or major upgrades. Good indexes, fresh statistics, and clearer SQL still come first.
Parallel Autovacuum and Logical Replication of Sequences
Autovacuum gets two upgrades that matter on busy systems. It can now vacuum a table's indexes with parallel workers, controlled by the new autovacuum_max_parallel_workers setting and a per-table limit. Manual VACUUM could already parallelize index cleanup; autovacuum could not, so wide tables with many indexes often fell behind. A new scoring system decides which tables to process first, and those scores are visible in pg_stat_autovacuum_scores. Queries can also mark eligible pages all-visible in the visibility map during ordinary execution, which reduces work for later vacuums.
Parallel index vacuuming is opt-in. Set autovacuum_max_parallel_workers to a value that fits your CPU and I/O budget, reload the configuration, and watch whether vacuum duration on large multi-index tables actually drops before you raise it further. The new scoring view is worth adding to monitoring so you can see which relations autovacuum considers urgent.
Logical replication loses two long-standing chores. Creating the first logical replication slot automatically raises the effective WAL level to logical when wal_level is set to replica, so enabling logical replication no longer requires a server restart. The new effective_wal_level setting shows what is actually in use. Publications can also include sequences with CREATE PUBLICATION ... FOR ALL SEQUENCES.
Sequence replication is not continuous the way table replication is. The subscriber copies current values when the subscription is created, and again only when you run ALTER SUBSCRIPTION ... REFRESH SEQUENCES. That is still a large improvement for logical upgrades and failovers, where forgotten sequence positions used to cause duplicate-key errors after cutover. Put the refresh on the cutover checklist, and confirm values with the sequence inspection functions before you switch writers.
Related replication work includes WAIT FOR LSN, which lets a session on a standby wait until replay reaches a specific log sequence number before running a query. Applications that read from replicas can get read-your-writes consistency without pinning every read to the primary. Publications also gain an EXCEPT clause, and subscriptions can take connection settings from a foreign server.
Developer Features Worth Knowing
INSERT ... ON CONFLICT DO SELECT lets the RETURNING clause hand back the existing row that conflicted with an insert, which simplifies the common get-or-create pattern and can save a network round trip. COPY can emit JSON, including a single JSON array. Window functions such as lead, lag, first_value, last_value, and nth_value accept IGNORE NULLS. SQL/JSON path expressions gain string methods including lower, upper, replace, and split_part.
Several workloads get faster without application changes. Foreign-key checks improved enough that bulk inserts were nearly twice as fast in project testing. The planner can turn some NOT IN clauses into anti-joins when nulls are absent, and it can aggregate before a join to shrink intermediate row counts. The asynchronous I/O subsystem added in PostgreSQL 18 now scales worker processes automatically between io_min_workers and io_max_workers, replacing the fixed io_workers setting. New views, including pg_stat_lock, pg_stat_recovery, and pg_stat_autovacuum_scores, plus an IO option for EXPLAIN ANALYZE, give a clearer picture of locks, recovery, and I/O.
What to Check Before You Upgrade
PostgreSQL 19 is supported for five years, through November 19, 2031. PostgreSQL 14 reached end of life with its final release on November 12, 2026, so clusters still on 14 are already outside the support window. Version 18, released September 25, 2025, remains supported until November 14, 2030. There is no emergency to leave a healthy 18 cluster, but the operational features in 19 are concrete reasons to schedule the move.
Several changes will stop a server from starting or block pg_upgrade. Audit them before the maintenance window, not during it.
- Remove io_workers and escape_string_warning from postgresql.conf. Unknown parameters are fatal on startup. If you tuned asynchronous I/O, use io_min_workers and io_max_workers instead.
- JIT is off by default because cost-based activation proved unreliable. Analytical workloads that benefited from JIT should set jit to on explicitly and retest heavy reports.
- RADIUS authentication is removed. Any radius line in pg_hba.conf must be replaced, typically with LDAP, certificates, or SCRAM, or the server will refuse to start.
- Successful md5 password authentication now warns. md5 was deprecated in PostgreSQL 18 and is scheduled for removal. Migrate remaining roles to SCRAM.
- Drop and recreate btree_gist indexes on inet or cidr columns before pg_upgrade. The old opclasses are refused.
- If you set max_locks_per_transaction yourself, double the value to keep the same capacity. The default rose from 64 to 128, and lock memory accounting changed.
- When PostgreSQL is built with LZ4, the default TOAST compression method is now lz4.
- Use the PostgreSQL 19 pg_dump for dump-and-restore upgrades. standard_conforming_strings is forced on, so older dumps taken with it off may not load cleanly.
- Confirm that extensions you depend on, including PostGIS, pgvector, and TimescaleDB, have PostgreSQL 19 builds before cutover. Core shipped on November 19; packaging often trails by days or weeks.
Upgrade paths are unchanged in kind: pg_upgrade, dump and restore, or logical replication. Logical replication is a better fit for near-zero-downtime moves now that sequences can be published and logical decoding can be enabled without a restart, but you still need to refresh sequences explicitly at cutover.
PostgreSQL 19 is not a flashy rewrite of the database. It takes problems operators already live with, including bloat that required downtime, plans that flipped overnight, autovacuum falling behind on wide tables, and sequences left behind by logical replication, and puts supported answers in core. The slip to November 19 was a quality choice, including a second release candidate so fixes from the November maintenance cycle could land in 19.0. For teams evaluating the upgrade, the practical path is to audit configuration and indexes, rehearse concurrent repack and sequence refresh, and treat plan advice as a targeted fix. The features that shipped are the ones most likely to change how production PostgreSQL is run day to day.