StandardsAboutContact
The Weights
PostgreSQL 19 Teardown: Use It for Standby Reads

PostgreSQL 19 Teardown: Use It for Standby Reads

PostgreSQL 19 adds WAIT FOR LSN for read-your-writes on standbys. We'd use it, after a staging pass on your own replication lag.

The bottom line: Use it, with a staging pass first. PostgreSQL 19 gives standby-read applications real read-your-writes consistency through WAIT FOR LSN, replacing application-side lag guesses. REPACK (CONCURRENTLY) is the other upgrade worth testing. The release reportedly arrived two months late, so verify your own replication workload before promoting it.

The Weights Desk · 4 min read

PostgreSQL 19 shipped on 2026-11-19, and our badge is Use it, with a staging pass first. The deciding feature is WAIT FOR LSN, which gives applications that send reads to standbys read-your-writes consistency. Simon Willison, who flagged the release, reports it landed two months after the usual September slot because of a flurry of vulnerability reports. The release announcement and notes confirm the date and the feature list, but not that reason.

The bottom line: Use it if you read from standbys

The bottom line is Use it if you route reads to standbys, because WAIT FOR LSN removes a class of stale-read workarounds. The announcement documents the mechanism but publishes no latency figure, so the one number that decides adoption is yours: standby wait time under your real write rate. If you do not use standby reads, the badge drops to Wait until your staging pass is done.

What WAIT FOR LSN changes for standby reads

The release announcement says a session on a standby can use WAIT FOR LSN to wait until the standby has replayed the write-ahead log up to a specific log sequence number before running a query. In practice, a client records the position of its write on the primary and hands it to the standby read. That replaces sleep-and-retry loops and sticky routing to the primary, which are the usual workarounds for replica lag.

REPACK is the second feature to test

According to the announcement, REPACK replaces VACUUM FULL and CLUSTER, which remain only for compatibility, and REPACK (CONCURRENTLY) avoids blocking reads and writes. For teams that schedule table rewrites in maintenance windows, that is a potentially large operational change. We have not benchmarked it, so the number that decides adoption is your own lock duration and replication lag during a concurrent run on a production-sized table.

Default changes can move your latency budget

The announcement states that JIT is now disabled by default and that the default TOAST compression is lz4 in builds with LZ4 support. Either can shift query latency and storage size without a single line of application code changing. Neither page publishes a benchmark for these defaults, so treat any claim of improvement as unverified until you replay your own query mix against both settings.

Authentication removals need an audit before upgrading

The announcement says PostgreSQL 19 removes RADIUS authentication and issues a warning after a successful md5 password login, a method deprecated in PostgreSQL 18 and slated for removal. The release notes describe RADIUS over UDP as unfixably insecure. Any cluster still using either method should inventory its pg_hba.conf entries now, because a removed method fails closed at connection time rather than degrading gracefully.

Pre-promotion checklist

Before promoting PostgreSQL 19, measure standby wait times under your real write rate, run REPACK (CONCURRENTLY) on a copy of a production-sized table, compare JIT and lz4 defaults against your current settings, and audit authentication methods. The release notes list no CVE identifiers, so check the project's security page for the vulnerability fixes behind the reported delay before you treat that explanation as settled.

What does WAIT FOR LSN do in PostgreSQL 19?
It lets a session on a standby wait until the standby has replayed the write-ahead log up to a specific log sequence number before running a query. A client can take the LSN from its write on the primary and pass it to the standby, which gives read-your-writes consistency.
Should teams upgrade to PostgreSQL 19 immediately?
Teams that route reads to standbys have a concrete reason to test it now. Everyone else can wait for a staging pass: the JIT and TOAST default changes and the RADIUS removal can alter performance or authentication behavior.
Why was PostgreSQL 19 released later than usual?
Simon Willison says the release came two months later than the usual September slot, mainly because of a flurry of reported vulnerabilities the team had to address. The release announcement and release notes we read give the release date but do not state that reason, so treat it as his account.
What replaces VACUUM FULL and CLUSTER?
The new REPACK command. REPACK (CONCURRENTLY) is documented as avoiding blocking reads and writes. VACUUM FULL and CLUSTER stay available for compatibility.
  1. PostgreSQL 19 Released — Simon Willison
  2. PostgreSQL 19 Released (announcement) — PostgreSQL Global Development Group
  3. PostgreSQL 19 Release Notes — PostgreSQL Global Development Group