Skip to content
Adelmi

PostgreSQL 19: what is new, what breaks and how to upgrade

PostgreSQL 19 shipped on November 19, 2026: non-blocking REPACK, JIT off by default and PostgreSQL 14 out of support. What changes and how to upgrade.

· Software Engineer4 min read

Lee este artículo en español

Subscribe via RSS

PostgreSQL 19 was released on November 19, 2026. The most useful change for production is the new REPACK command, which rewrites a table to reclaim disk space; with CONCURRENTLY it does so without blocking reads or writes. Also, JIT is now off by default, and PostgreSQL 14 lost community support on November 12. If your business runs on PostgreSQL, check which version you are on before the next security fix passes it by. If nobody owns that task, our software maintenance and support service can take it.

What is new in PostgreSQL 19?

According to the release notes, these are the highlights:

  • REPACK: a single command that replaces VACUUM FULL and CLUSTER, whose names were confusing. The old commands remain for compatibility. With the CONCURRENTLY option it rebuilds the table without an access-exclusive lock; a new setting, max_repack_replication_slots, was added and the pg_stat_progress_repack view reports progress.
  • Autovacuum: it can use parallel workers on a table's indexes and now prioritizes tables with a scoring system (the pg_stat_autovacuum_scores view).
  • Performance: the number of I/O workers scales automatically, foreign-key checks are faster and COPY FROM for text and CSV uses SIMD instructions. The default TOAST compression moves from pglz to lz4.
  • Replication: logical replication can be enabled without a restart when wal_level is replica, sequence values are replicated, and a new WAIT command gives read-your-writes consistency on standbys.
  • Planner control: the pg_plan_advice and pg_stash_advice extensions let you pin query planner decisions.

The notes give no improvement figures for these optimizations: measure with your own queries before promising results.

What can break when I upgrade?

The release notes list an incompatibilities section. These are the ones most likely to touch a business system:

ChangeWhat to do
JIT is off by defaultIf you run many large analytical queries, enable it manually
max_locks_per_transaction goes from 64 to 128Settings must be doubled to match the previous capacity
standard_conforming_strings is always onCreate dumps with the version 19 (or newer) pg_dump
RADIUS support is removedIf you authenticate with RADIUS, pick another method before migrating
btree_gist indexes on inet and cidrpg_upgrade refuses to upgrade clusters that use them
io_workers is removedReplaced by four new settings (io_min_workers, io_max_workers and two more)
Full-text search and pg_trgm classify characters differentlyWith a locale provider other than libc, reindex and recompute stored tsvector values after upgrading

The full list is in the "Migration to Version 19" section of the notes.

Which PostgreSQL version should I run?

The project supports each major version for 5 years and ships minor fix releases at least every three months, according to its versioning policy.

VersionStatusLatest minorEnd of support
19Supported19.0November 19, 2031
18Supported18.7November 14, 2030
17Supported17.12November 8, 2029
16Supported16.16November 9, 2028
15Supported15.20November 11, 2027
14Unsupported14.25November 12, 2026

If you run PostgreSQL 14 or older, you no longer get security fixes. You do not need to wait for 19 or step through the versions in between: the policy allows jumping from one major version to another, though it recommends reading the release notes of the versions you skip.

How do I upgrade?

  1. Find your version: SELECT version(); in psql. On a managed service, check the console for when version 19 will be offered.
  2. First move to the latest minor release of your version: the policy recommends it and it needs no data restore.
  3. For a major version you need pg_upgrade, a pg_dumpall dump and restore, or logical replication; the data directory is not compatible across major versions.
  4. Test on a copy first: run your heaviest queries, go through the incompatibilities table and measure with JIT off and on.

For development teams

Do not move to 19 on release day. A brand-new major version deserves a trial in a test environment; the immediate priority is getting off PostgreSQL 14 if you are still on it.

Sources

  1. PostgreSQL 19 Released (Nov 19, 2026) (accessed November 20, 2026)
  2. PostgreSQL 19 Documentation: Release 19 (accessed November 20, 2026)
  3. PostgreSQL: Versioning Policy (accessed November 20, 2026)
  • NewsCustom software

    GitHub blocks pull_request_target by default: what to check

    Since December 2, 2026, GitHub Actions blocks pull_request_target by default in affected public repositories. What changes and how to audit your workflows.

    David Hernandez· Software Engineer3 min read
  • NewsCustom software

    52% of WordPress sites will run unsupported PHP on Jan 1

    52.24% of WordPress sites run PHP 8.2 or older, with no security patches from January 1. How to check your PHP version and which one to move to.

    David Hernandez· Software Engineer3 min read