PostgreSQL 19 Daily Brief — Day 16: December 04, 2026

//

//

PostgreSQL 19 Daily Brief — Day 16th: December 04, 2026

Marcus Vance — Lead Systems & Backend Architect
December 04, 2026


The Lay of the Land

PostgreSQL 19 dropped on November 19, 2026 — three weeks later than the usual autumn window after extended testing and feature reversions. We’re 16 days into the release cycle. The initial announcement fanfare has settled; now the real work begins: understanding what actually works in production, what doesn’t, and where the sharp edges live.

Feature Pulse: What’s Moving

PostgreSQL 19: REPACK 命令支持 CONCURRENTLY 选项 – Redrock Postgres

Source: https://www.rockdata.net/zh-cn/posts/repack-add-concurrently-option

由 John Doe 四月 9, 2026

PostgreSQL 原生REPACK命令新增 CONCURRENTLY(并发执行)选项,实现了业务表几乎无感知的 7×24 小时在线重组。

image

目录

特性提交日志

为 REPACK 命令添加 CONCURRENTLY 选项。

当指定该选项时,REPACK 在创建表的新副本期间不再获取访问排他锁(access-exclusive lock);取而代之的是,它仅在共享更新排他锁(share-update-exclusive lock) 下创建初始副本(与 VACUUM 等命令锁级别相同),并基于 MVCC 快照进行操作。它会从该快照开始创建一个复制槽,并使用一个并发后台工作进程,从该快照起点执行逻辑解码,将并发产生的数据变更暂存起来。

在交换表物理

PostgreSQL 19 REPACK CONCURRENTLY explained | NiharDaily

Source: https://www.nihardaily.com/posts/postgresql-19-repack-concurrently-shrink-bloat-stay-live

What is REPACK in PostgreSQL 19?

REPACK is a new PostgreSQL 19 command that rewrites a table into a fresh disk file to remove wasted space. The official REPACK reference says it returns space to the operating system and can also reorder rows to match an index. The PostgreSQL 19 release notes list the CONCURRENTLY option as the headline change.

Table bloat is disk space that a table holds but no live row uses. It builds up when an app deletes or updates many rows. Plain VACUUM marks th

Postgres 19 REPACK: Built-In Online Table Bloat Cleanup

Source: https://www.snowflake.com/en/blog/engineering/postgres-19-repack-table-bloat

This worked well, and many production systems relied on it for years. But installing third-party extensions makes some teams nervous, and the external binary adds operational overhead.

How pg_squeeze works

pg_squeeze (from CYBERTEC, the same team behind much of the Postgres 19 REPACK work) came along and took a more modern approach. It’s also seen wide production use. […] Nov 2, 2026/10 min readOpen Source

Postgres 19 REPACK: Faster, Built-In Table Bloat Cleanup

REPACK is my favori

Postgres 19 REPACK: shrink a bloated table without stopping the clients

Source: https://www.youtube.com/watch?v=EGd3SYDaenI

Postgres 19 came out yesterday and one feature got its own hacker news thread. A new command called repack. It gives a bloated table space back to the operating system and with one option it does that while your application keeps reading and writing. Let’s see how it works and then measure it. Here’s the problem. You purge most of a big table and the file on disk doesn’t shrink. Plain vacuum makes the space reusable but keeps the file. Vacuum full shrinks it but locks the table. So every query w

VACUUM FULL Locks Your Table the Whole Time. Postgres 19’s REPACK CONCURRENTLY Doesn’t – DEV Community

Source: https://dev.to/gabrielanhaia/vacuum-full-locks-your-table-the-whole-time-postgres-19s-repack-concurrently-doesnt-186

Should you use it yet

Not in production today. As of October 15, 2026, the newest PostgreSQL 19 build on postgresql.org is Beta 4, released September 24. The Beta 4 announcement says a release candidate "should occur in early October" and GA "may also occur in October," and the roadmap lists October 2026. That same announcement lists "several fixes for the new REPACK command, including crashes," and it reverted several other features, including SQL/PGQ. REPACK stayed in, but it’s still settl

Adoption Reality Check

This is where the rubber meets the road. Release notes promise; production deployments deliver verdicts.

Read your writes: WAIT FOR in PostgreSQL 19 | daily.dev

Source: https://daily.dev/posts/read-your-writes-wait-for-in-postgresql-19-dgf5lzjqp

PostgreSQL 19 introduces a new WAIT FOR SQL command that lets a session block until WAL replication reaches a specific LSN, enabling read-your-writes consistency on asynchronous replicas without the latency cost of synchronous replication. The command supports modes like standby_replay, standby_flush, standby_write, and primary_flush, plus TIMEOUT and NO_THROW options. It must run as a top-level utility command (not inside functions or higher isolation levels) because it needs to run withou

PG19 Hacktober: 31 Days of New Features: Automatic Scaling of PostgreSQL I/O Worker Processes – OpenSourceDB

Source: https://opensource-db.com/pg19-hacktober-31-days-of-new-features-automatic-scaling-of-postgresql-i-o-worker-processes

I/O Submission ───► [ Worker 0 (Hot) ] ───► [ Worker 1 (Warm) ] ───► [ Worker 2..N (Idle) ] Always preferred Woken on spillover Allowed to time out

  • Cache Locality & Latch Collapsing: Keeps lower-numbered workers hot and running in CPU caches while allowing latches to collapse when multiple jobs arrive in quick succession.
  • Deterministic Scale-Down: High-numbered workers remain idle longer, allowing them to cleanly hit their io_worker_idle_timeout.

2. Backlog Detection & Scale-Up Me

What breaks in PostgreSQL 19, and how to check before you upgrade | Mohammad Aziz

Source: https://iaziz786.com/blog/upgrading-to-postgresql-19

PostgreSQL 19 was released on November 19, 2026. If you run Postgres in production, the binary upgrade path from 18 looks familiar. You install the new binaries, create a new cluster, and run pg_upgrade.

The failures are less obvious. Some come from catalog objects that pg_upgrade inspects. Others come from settings and defaults that it does not read. This post separates the two. It covers the blockers that pg_upgrade --check reports before you touch data, an experiment that shows the mos

PostgreSQL 19 upgrade checklist: what breaks | NiharDaily

Source: https://www.nihardaily.com/posts/postgresql-19-upgrade-checklist-what-breaks-what-to-test

PostgreSQL 19 upgrade checklist: max_locks_per_transaction goes from 64 to 128

Table of contents 13 sections

PostgreSQL 19 can be upgraded safely, but three groups of changes can bite a production database. Some indexes block pg_upgrade outright. Some defaults change how the server behaves on day one. A few behaviors change without any error at all. Test those three groups in staging first, and the rest of the release notes are mostly good news.

Should you upgrade to PostgreSQL 19 no

Community Signal

Vance’s Take

Here’s what I’m watching, having spent two decades watching Postgres releases go from RC to production:

REPACK CONCURRENTLY

The headline feature. Non-blocking table reorganization is genuinely useful for 24/7 workloads that can’t afford exclusive locks. But the 104-million-tuple limit (MVCC snapshot horizon) means it’s not a universal vacuum replacement — it’s a targeted tool for bloat hotspots. Test your tuple counts before you schedule it.

pg_plan_advice / pg_stash_advice

Plan pinning without hints. This is Postgres finally admitting that sometimes the planner gets it wrong and DBAs need a lever. The extension approach keeps core clean while giving operators control. Expect to see this in every serious monitoring stack within six months.

Standby Read-Your-Writes (WAIT FOR LSN)

This solves the classic "read from replica after write" race without synchronous replication’s latency penalty. The WAIT command blocks until the standby catches up to a specific LSN. For read-scaling architectures, this is the feature that makes async replicas viable for consistent reads. Finally.

Sequence Logical Replication

Identity columns and sequences now replicate logically. No more out-of-sync sequences on subscribers after failover. This was a genuine pain point for logical replication setups; fixing it removes a whole class of post-failover manual intervention.

Foreign Key Check Speedup (2x)

The optimizer now avoids redundant FK checks during bulk loads and partitioned table operations. Measurable win for ETL pipelines and partition maintenance. Not sexy, but it compounds.

This Week’s Action Items

  1. If you run logical replication: test sequence replication on a staging subscriber before upgrading the publisher.
  2. Evaluate REPACK CONCURRENTLY on your most bloated tables — check pg_class.relpages vs pg_relation_size first.
  3. Add pg_plan_advice to your monitoring stack; start capturing planner decisions that need pinning.
  4. Review standby promotion procedures: WAIT FOR LSN changes the consistency calculus for read replicas.
  5. Schedule FK-heavy bulk loads to benefit from the 2x check speedup — partition maintenance windows may shrink.

Sources

Scheduling

publish = 2026-12-04 15:00:00 America/New_York
slug = postgresql-19-daily-brief-day-16-2026-12-04
categories = ["Backend & Data Systems"]
tags = ["postgresql", "postgresql-19", "database-internals", "backend-architecture", "daily-briefing"]
excerpt = Day 16 of the PostgreSQL 19 daily brief: REPACK CONCURRENTLY limits, pg_plan_advice plan pinning in production, standby read-your-writes with WAIT FOR LSN, sequence logical replication, and foreign key check speedups. Real adoption signals from the community.
series = "PostgreSQL 19 Daily Brief"
series_position = "Day 16"
author = "Marcus Vance"
author_role = "Lead Systems & Backend Architect"

// THE TRANSMISSION LOG : FIELD NOTES

Weekly zero-fluff breakdowns of distributed systems, browser runtime performance, and production post-mortems delivered directly from Stella Sage.