Cleaning up tables without locking them: PostgreSQL 19 arrives, six weeks later than usual
The new version of the open source database brings the REPACK command, more control over query plans and stricter defaults.
The PostgreSQL project on Thursday released version 19 of the open source database. According to Linux Compatible, it comes about six weeks after the usual mid-October window. The site writes that several ambitious features were dropped late in the cycle because the developers prioritised reliability after a wave of bug reports from AI-assisted testing. SQL/PGQ graph queries and online merging and splitting of partitions move to the candidates for version 20.
The most notable addition is REPACK. According to the project's announcement, the command reclaims space in bloated tables and replaces VACUUM FULL and CLUSTER, which remain for compatibility. With the CONCURRENTLY option, reads and writes can continue in the meantime; Linux Compatible points out that this needs roughly twice the table's size in disk space. With the pg_plan_advice and pg_stash_advice extensions, administrators can correct a slow query plan without changing application code.
In addition, logical replication no longer requires a server restart, a standby can use WAIT FOR LSN to wait until recent changes have been replayed, and bulk inserts with foreign keys run almost twice as fast in the project's tests. Those upgrading need to be careful: JIT is off by default, md5 logins now produce a warning and support for RADIUS authentication has gone. Linux Compatible also reports that dumps made with an old pg_dump and standard_conforming_strings set to off will no longer load.