<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/read-after-write-scaling-postgres-433-nugymtuso" -->

---
title: Read After Write | Scaling Postgres 433 | daily.dev
description: This weekly Postgres roundup covers the WAIT FOR command coming in Postgres 19, which lets applications wait for a specific LSN to be replayed on a replica...
canonical: https://daily.dev/posts/read-after-write-scaling-postgres-433-nugymtuso
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Read After Write | Scaling Postgres 433 | daily.dev
og:description: This weekly Postgres roundup covers the WAIT FOR command coming in Postgres 19, which lets applications wait for a specific LSN to be replayed on a replica...
og:url: https://daily.dev/posts/read-after-write-scaling-postgres-433-nugymtuso
og:image: https://api.daily.dev/og/posts/NUGyMtuso.png
og:image:alt: Read After Write | Scaling Postgres 433
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Read After Write | Scaling Postgres 433

**[Scaling Postgres](https://daily.dev/sources/scaling-postgres)** · 16 min read · 0 upvotes · 0 comments

## Summary

This weekly Postgres roundup covers the WAIT FOR command coming in Postgres 19, which lets applications wait for a specific LSN to be replayed on a replica before reading, eliminating stale reads with only slight latency overhead compared to reading from the primary. A boringSQL.com benchmark showed 992/1000 stale reads when reading immediately from a replica after a write, versus zero stale reads using WAIT FOR with only 1-2ms added latency. Other topics include a ClickHouse talk on how local NVMe storage massively outperforms EBS (16,000 vs 1,700 TPS) for large Postgres databases, new Postgres 19 system views (pg_stat_lock, pg_stat_recovery, pg_stat_autovacuum scores), a deep dive into NULL calculation quirks, a PG Catalog Almanac tracking schema metadata changes across versions, and a comprehensive rundown of Postgres 19 compatibility breaks including JIT off by default, removed RADIUS auth, deprecated MD5 warnings, doubled max_locks_per_transaction, and a default compression change from PGLZ to LZ4.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=9OJW_FqCWBU>

## Questions this post answers

### How does the WAIT FOR command in Postgres 19 prevent stale reads from replicas?

WAIT FOR lets an application wait for a specific WAL LSN to be replayed on a replica before executing a read, guaranteeing the just-written data is visible. In a benchmark, reading from a replica immediately after a write produced 992 stale reads out of 1,000, while using WAIT FOR produced zero stale reads with latency only about 1-2ms higher than reading directly from the primary.

_Track how Postgres 19's WAIT FOR evolves toward release by following replication updates on daily.dev._

### Why is local NVMe storage so much faster than EBS for large Postgres databases?

A half-terabyte pgbench test with 3.3 billion rows showed local NVMe clusters hitting 16,000 transactions per second versus 1,700 TPS on GP3 EBS at 3,000 IOPS, with median transaction latency dropping from 36.9ms to 4ms. Page read latency was 19ms on EBS versus 0.3ms on NVMe, and fsync was 11ms versus 1.5ms, though NVMe is ephemeral and requires synchronous standbys across availability zones plus WAL shipping to object storage for durability.

_Compare storage tradeoffs for Postgres scaling decisions with daily.dev's coverage of database infrastructure._

### What are the major compatibility breaks to expect when upgrading to PostgreSQL 19?

PostgreSQL 19 disables JIT by default, always enables standard conforming strings, removes RADIUS authentication, issues warnings for MD5 password authentication, changes the default op class indexing for inet and CIDR data types, disallows carriage return and line feed characters in role and tablespace names, doubles max_locks_per_transaction from 64 to 128, and switches default compression from PGLZ to LZ4.

_Check breaking changes before your next Postgres major version upgrade using daily.dev's database tracking._

---

Tags: [#database](https://daily.dev/tags/database), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/read-after-write-scaling-postgres-433-nugymtuso)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Read After Write | Scaling Postgres 433","url":"https://daily.dev/posts/read-after-write-scaling-postgres-433-nugymtuso","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/read-after-write-scaling-postgres-433-nugymtuso"},"datePublished":"2026-09-06T21:02:51.311Z","dateModified":"2026-09-06T21:29:40.902Z","description":"This weekly Postgres roundup covers the WAIT FOR command coming in Postgres 19, which lets applications wait for a specific LSN to be replayed on a replica...","image":"https://i.ytimg.com/vi/9OJW_FqCWBU/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/9OJW_FqCWBU/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Scaling Postgres","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Scaling Postgres","logo":"https://media.daily.dev/image/upload/s--RbakkUgu--/f_auto,q_auto/v1780213462/logos/scaling-postgres?_a=BAMAMiWQ0","url":"https://daily.dev/sources/scaling-postgres"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/read-after-write-scaling-postgres-433-nugymtuso","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"database,postgresql","timeRequired":"PT16M","video":{"@type":"VideoObject","name":"Read After Write | Scaling Postgres 433","description":"This weekly Postgres roundup covers the WAIT FOR command coming in Postgres 19, which lets applications wait for a specific LSN to be replayed on a replica...","thumbnailUrl":"https://i.ytimg.com/vi/9OJW_FqCWBU/sddefault.jpg","uploadDate":"2026-09-06T21:02:51.311Z","duration":"PT16M","url":"https://api.daily.dev/r/NUGyMtuso","embedUrl":"https://www.youtube.com/embed/9OJW_FqCWBU"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Scaling Postgres","item":"https://daily.dev/sources/scaling-postgres"},{"@type":"ListItem","position":3,"name":"Read After Write | Scaling Postgres 433"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/read-after-write-scaling-postgres-433-nugymtuso#faq","mainEntity":[{"@type":"Question","name":"How does the WAIT FOR command in Postgres 19 prevent stale reads from replicas?","acceptedAnswer":{"@type":"Answer","text":"WAIT FOR lets an application wait for a specific WAL LSN to be replayed on a replica before executing a read, guaranteeing the just-written data is visible. In a benchmark, reading from a replica immediately after a write produced 992 stale reads out of 1,000, while using WAIT FOR produced zero stale reads with latency only about 1-2ms higher than reading directly from the primary. Track how Postgres 19's WAIT FOR evolves toward release by following replication updates on daily.dev."}},{"@type":"Question","name":"Why is local NVMe storage so much faster than EBS for large Postgres databases?","acceptedAnswer":{"@type":"Answer","text":"A half-terabyte pgbench test with 3.3 billion rows showed local NVMe clusters hitting 16,000 transactions per second versus 1,700 TPS on GP3 EBS at 3,000 IOPS, with median transaction latency dropping from 36.9ms to 4ms. Page read latency was 19ms on EBS versus 0.3ms on NVMe, and fsync was 11ms versus 1.5ms, though NVMe is ephemeral and requires synchronous standbys across availability zones plus WAL shipping to object storage for durability. Compare storage tradeoffs for Postgres scaling decisions with daily.dev's coverage of database infrastructure."}},{"@type":"Question","name":"What are the major compatibility breaks to expect when upgrading to PostgreSQL 19?","acceptedAnswer":{"@type":"Answer","text":"PostgreSQL 19 disables JIT by default, always enables standard conforming strings, removes RADIUS authentication, issues warnings for MD5 password authentication, changes the default op class indexing for inet and CIDR data types, disallows carriage return and line feed characters in role and tablespace names, doubles max_locks_per_transaction from 64 to 128, and switches default compression from PGLZ to LZ4. Check breaking changes before your next Postgres major version upgrade using daily.dev's database tracking."}}]}
```

