PostgreSQL 19 Ships REPACK CONCURRENTLY, With a 104 Million-Row Limit the Announcement Omits
Software / news
PostgreSQL 19 Ships REPACK CONCURRENTLY, With a 104 Million-Row Limit the Announcement Omits
The release turns JIT off, doubles max_locks_per_transaction to 128 and drops RADIUS. The reference page for its headline command lists the limits.
The PostgreSQL Global Development Group released PostgreSQL 19.0 on Nov. 19, 2026, and the headline command, REPACK (CONCURRENTLY), comes with limits that the release announcement does not mention. The command's reference page does: it is not safe under MVCC snapshots, and it fails if more than about 104 million rows change while it runs.
The same release switches off JIT compilation by default, doubles a lock-table default and removes RADIUS authentication. Those are the changes most likely to bite on upgrade day, much as Solid 2.0's seven removed APIs did for that framework, and PyPI's tightening of tarball formats did for packagers.
What REPACK (CONCURRENTLY) does and where it stops
REPACK replaces VACUUM FULL and CLUSTER, which stay available for compatibility. With CONCURRENTLY, it rebuilds a table without blocking reads or writes. It holds a SHARE UPDATE EXCLUSIVE lock for most of the run and takes ACCESS EXCLUSIVE only for the final file swap.
The reference page lists what it cannot touch: unlogged tables, partitioned tables, system catalogs, materialized views, and any table with no primary key and no index-based replica identity. It cannot run inside a transaction block. It needs free disk at least equal to the table plus its indexes, and a free replication slot under max_repack_replication_slots.
Two warnings matter more. The page says REPACK (CONCURRENTLY) is not MVCC-safe: after it commits, the table appears empty to concurrent transactions holding a snapshot taken before it started. And the run counts as one long transaction for wraparound purposes, which can stop VACUUM from cleaning other tables on a very large rebuild.
Defaults that changed in PostgreSQL 19
The release notes list 22 incompatible changes. These are the ones with operational weight.
| Setting or feature | PostgreSQL 19 | Before |
|---|---|---|
jit | Off by default | On |
max_locks_per_transaction | 128 | 64 |
| TOAST compression | lz4 when built with LZ4 | pglz |
| RADIUS authentication | Removed | Supported |
io_workers | Replaced by io_min_workers and io_max_workers | Single setting |
The announcement says the cost estimates that decided when to use JIT "proved unreliable." Sites running many large analytical queries must switch it back on. The release notes add that lock allocation changed, so a custom max_locks_per_transaction often needs doubling to keep the same capacity.
The wraparound warning also moves earlier. PostgreSQL now warns when transaction ID or multixact wraparound is within 100 million transactions, up from 40 million.
- PostgreSQL 1840 million transactions
- PostgreSQL 19100 million transactions
Source: PostgreSQL 19 release notes, accessed 2026-11-19
Plan control, replication and the smaller additions
pg_plan_advice lets a DBA pin planner choices such as join order and scan method with a small advice language. Its companion pg_stash_advice stores advice by query identifier and applies it without any change to the application, so a regressed plan can be fixed from the database side.
Autovacuum can now vacuum indexes with parallel workers, set by autovacuum_max_parallel_workers, and ranks tables with a scoring system. Logical replication gains sequence replication, a FOR ALL TABLES EXCEPT clause and a retain_dead_tuples option for detecting update-versus-delete conflicts.
INSERT ... ON CONFLICT DO SELECT returns the existing row, which removes the second round trip from get-or-create code. WAIT FOR LSN lets a standby hold a query until it has replayed a given position, giving read-your-writes consistency on replicas. The release says foreign-key checks were "nearly 2x faster" for bulk inserts in its own testing. That is a project figure, and no independent benchmark accompanies it.
What to check before moving from PostgreSQL 18
The md5 password method now logs a warning after each successful login, which md5_password_warnings can silence. The announcement repeats that md5 "will be removed in a future release" and points to SCRAM.
Migration from an earlier major version needs pg_dumpall, pg_upgrade or logical replication. pg_upgrade refuses clusters that use the btree_gist inet or cidr operator classes, or that have carriage returns or line feeds in database, role or tablespace names.
EDB's Tom Kincaid wrote on Oct. 18, after the first release candidate, that PostgreSQL 18 remains the production target until 19 is generally available and that teams should test 19 against their own workload. He also wrote that several features, including SQL property graph queries and partition merging and splitting, were reverted during the beta. General availability arrived on Nov. 19. The supported minor releases listed beside it on postgresql.org are 18.7, 17.12, 16.16 and 15.20.
Sources
More in Software
- 01Reaktiv Workbook Makes Every Spreadsheet Cell a Python Expression, at Version 0.1.9The MIT-licensed tool runs in the browser through Pyodide or on a local interpreter, and published its ninth release six days after the repository appeared.
- 02LiberNT, a 1,996-Star ReactOS Fork, Says AI Writes Code and Humans Run the TestsThe GPL-3.0 Windows 11 compatibility project publishes its AI rules in the README while press headlines call it AI-fuelled and vibe coded.
- 03GitHub Actions Runs YAML That Breaks zizmor, and the Parser Is the SuspectA 15-month-old zizmor bug report ended on November 22 with its maintainer blaming GitHub's own parser, not tree-sitter.
- 04Muru, Graham Dumpleton's Rust Server for Python Apps, Has 185 Open Issues and No BenchmarksThe mod_wsgi author's alpha project takes contributions as requirements rather than code, and its first post shows a 0.2 ms log line.