The stack watch
November 20, 2026 · 4 min read
Watch log
PostgreSQL 19 Hits Lakebase Day One, REPACK Leads the Fixes
PostgreSQL 19 hit GA and landed on Lakebase the same day, bringing REPACK, pg_plan_advice, WAIT FOR LSN and more. Version 19.1 is expected in February.
By Sophie Lindqvist4 min read713 words

PostgreSQL 19 reached general availability today and is live on Lakebase's managed service the same day — a pace that routinely takes other managed PostgreSQL providers weeks. Several Lakebase engineers are PostgreSQL committers and contributors who worked on the release directly, covering query plan advice, shared memory, locale handling and release management. Customers select PostgreSQL 19 when creating a new Lakebase project. No flagship feature, no rebranding of what PostgreSQL is. Version 19 instead attacks problems database teams know by name: bloated tables, unstable plans, replica lag, incomplete statistics, and maintenance that's hard to run safely in production.
What does REPACK change for table maintenance?
Under PostgreSQL's multiversion concurrency control, every UPDATE creates a new row version and every DELETE leaves a dead tuple. Vacuuming makes that space reusable but doesn't return it to the OS or restore physical row order. The old fixes — VACUUM FULL, CLUSTER, or pg_repack — either take an ACCESS EXCLUSIVE lock for the whole operation or push you into an extension.
REPACK, new in core, reclaims space like VACUUM FULL and, with USING INDEX, physically orders rows like CLUSTER. With CONCURRENTLY, reads and writes continue while logical decoding captures ongoing changes; the exclusive lock appears only for the final swap, briefly, longer on busy tables. A chat app can rebuild its messages table clustered by conversation and send time while users keep chatting.
The fine print matters. Concurrent repacking needs:
- A free slot under max_repack_replication_slots
- A non-deferrable primary key or suitable index-based replica identity
- Temporary disk space for the table copy plus all indexes, potentially plus a sort file up to table size
- Fewer than roughly 104 million tuples updated or deleted in the target table during the repack — beyond that, the upstream 19 implementation fails
It's also not MVCC-safe: snapshots taken before the repack can see the table as empty afterward, and clustering degrades as writes resume. Still, it brings into core a job that used to cost downtime.
How does plan advice work?
Per-table statistics can miss cross-table correlations. If enterprise customers are 0.1% of customers but drive 30% of orders, the planner may pick a nested loop that probes an index repeatedly when a hash join would win. PostgreSQL 19 adds pg_plan_advice, which describes planner decisions as advice, applies supplied advice and reports whether it was followed, and pg_stash_advice, which stores advice by query ID and applies it automatically to matching queries. EXPLAIN reports "matched" — meaning the plan complies, not that it's better; you still evaluate against real workloads. Unlike inline hints, advice lives outside the application's query text. Treat it as a stabilizer after diagnosis, not a substitute for the optimizer.
What else landed?
Autovacuum can now vacuum indexes with parallel workers via autovacuum_max_parallel_workers, with a new scoring system prioritizing tables by urgency. New views include pg_stat_lock, pg_stat_recovery and pg_stat_autovacuum_scores; EXPLAIN (ANALYZE, IO) reports asynchronous I/O; pg_stat_wal now tracks full-page-image bytes. Logical replication closes old gaps: FOR ALL SEQUENCES, FOR ALL TABLES EXCEPT, subscriptions to postgres_fdw servers, retain_dead_tuples for detecting update_deleted conflicts. WAIT FOR LSN blocks a standby until replay reaches a requested position — read-your-writes without polling sleeps. postgres_fdw can import remote statistics for better federated plans. INSERT ... ON CONFLICT DO SELECT gives a clean get-or-create, and COPY TO can emit JSON directly, one object per line by default or FORCE_ARRAY for a single array (export only). Smaller wins: regex-capable btrim(), lower(), replace(), split_part(); random() for dates and timestamps; IGNORE NULLS in window functions; auto-scaling io_method = worker.
What got pulled?
Reviewers found correctness problems late in the cycle, so several features ship later instead: SQL/PGQ property graph queries (reverted September 7, 2026), UPDATE/DELETE FOR PORTION OF (September 15, 2026), MERGE/SPLIT PARTITION (August 27, 2026), GROUP BY ALL (July 17, 2026), parallel pg_dumpall (June 18, 2026), and pg_get_role_ddl() and friends (September 13, 2026).
Should you migrate now?
Not on 19.0. The community expects PostgreSQL 19.1 in February, and many teams time production upgrades to that first minor release — sensible for any .0. Check changed defaults and compatibility behaviors, and confirm your extensions support 19 before planning. The takeaway: REPACK and plan advice alone justify a spot on your test bench.
Plot points
- PostgreSQL 19 reached GA and is available on Lakebase the same day
- REPACK (CONCURRENTLY) fails if more than ~104 million tuples are updated or deleted in the target table during the repack
- Six features were reverted before release, including SQL/PGQ on September 7, 2026
- PostgreSQL 19.1, the first minor release, is anticipated in February
- Autovacuum gains parallel index vacuuming via autovacuum_max_parallel_workers
via databricks.com (Source)
More from Sophie Lindqvist
Show full bio
Senior reporter covering companies, deals and strategy in marketing technology at Martech Beacon.
56 articles