All news
VIBPS / NEWS • DEVELOPER TOOLS

What changes in PostgreSQL 19, and how should teams plan an upgrade?

PostgreSQL 19 adds concurrent table repacking, new replication and SQL features, and planner tools. Its release notes also flag compatibility changes to check before a major-version migration.

PostgreSQL 19 became generally available on November 19. The release adds ways to reorganize busy tables with less interruption, inspect and stabilize query plans, replicate data across systems, and simplify common SQL patterns. For teams, the other half of the release is its migration list: this is a major version, so plan a cluster migration and check compatibility before moving a production database.

What stands out for application teams?

The new REPACK command combines work previously associated with VACUUM FULL and CLUSTER. Its CONCURRENTLY option can rebuild a table without taking an access-exclusive lock, so reads and writes can continue while the operation runs. The older commands remain available. PostgreSQL presents REPACK as a way to reclaim space and reorder data for a workload; it does not make every maintenance job cost-free, so test duration, I/O load and replication impact against a copy of your own data.

For queries whose plans change as data grows, PostgreSQL 19 adds pg_plan_advice for influencing planner choices and the companion pg_stash_advice extension for storing advice by query identifier. These give teams more ways to investigate and stabilize particular plans, but they still call for measuring the query under representative data and settings. A plan that helps one workload is not automatically the best choice for another.

Replication and SQL changes may be more immediately useful in application code. Creating a logical replication slot can now raise the effective WAL level to logical when the configured level is replica, avoiding a restart just to make that first setup change. PostgreSQL 19 also supports logical replication of sequence values and adds WAIT FOR LSN so a read sent to a standby can wait until it has replayed a particular write. That offers a building block for read-your-writes behavior, though the application still needs to pass the relevant log sequence number and handle waiting or timeouts.

Other additions include INSERT ... ON CONFLICT DO SELECT for returning a row that already exists, JSON output from COPY TO, more SQL/JSON path string operations, and IGNORE NULLS for selected window functions. PostgreSQL's release announcement reports that foreign-key checks made bulk inserts nearly twice as fast in its testing. That is a project-reported result for the tested case, not a general performance guarantee; compare PostgreSQL 18 and 19 with your schema and write mix before forecasting a gain.

Which compatibility changes deserve an early check?

  • Authentication: PostgreSQL 19 removes RADIUS support. It also warns after successful MD5 password authentication; MD5 was deprecated in PostgreSQL 18. If an application or managed service still depends on RADIUS, plan a supported authentication change, such as SCRAM where appropriate, before upgrading.
  • Dump behavior: the server now forces standard_conforming_strings to on. A dump produced by pre-19 pg_dump or pg_dumpall while that setting was off will not load correctly into PostgreSQL 19 or later. Use dump tools from PostgreSQL 19 or later, or ensure the setting is on when creating the dump.
  • Indexes and locale-sensitive search: pg_upgrade will reject clusters with btree_gist inet/cidr indexes. The release notes also call for reindexing full-text-search and pg_trgm indexes, and recomputing stored tsvector values, in databases where the locale provider's character rules differ from LC_CTYPE. Check whether those cases apply to your cluster rather than assuming every database needs the same rebuild.
  • Analytical queries and configuration: JIT is disabled by default, so teams that rely on it for large analytical queries should test plans and explicitly enable it if it helps. The io_workers setting is removed and replaced by io_min_workers, io_max_workers, io_worker_idle_timeout and io_worker_launch_interval. The default max_locks_per_transaction rises from 64 to 128; because lock allocation changed, compare configured capacity before copying old values forward.

How should a team approach the major-version move?

PostgreSQL's documentation says migration from an earlier major version requires dump and restore, pg_upgrade or logical replication. A major version can change the data storage format, and it may change behavior applications rely on. Do not point PostgreSQL 19 at an older cluster's data directory as if this were a minor update. Choose a migration method based on database size, extension support, acceptable downtime and recovery needs, then rehearse it on a recent production copy.

Before selecting a date, inventory extensions, authentication, custom settings, indexes and locale choices; scan the full migration section of the 19 release notes, not only the headline features. Test application queries, background jobs, backups, replication, monitoring and restore procedures on the target version. Keep a verified backup and a practical rollback or cutover plan. PostgreSQL packages are available for major operating systems, but the package provider's instructions and extension builds are part of the upgrade plan too.

For a software maker, the release is most interesting when a database change improves a real product workflow: a quieter maintenance window, simpler create-or-return SQL, or fresher reads from a replica. Those benefits are worth measuring alongside the migration work. VIBPS is a place to share the software you are building and the decisions behind it.

Introduce your app on VIBPS

More software stories, with sources and context.

More news