<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/postgres-19-gets-repack-aurora-lock-contention-gets-fixed-4x-ljtfopovw" -->

---
title: Postgres 19 gets REPACK, Aurora lock contention gets...
description: Postgres 19 beta 3 ships REPACK, a concurrent alternative to VACUUM FULL that keeps writers flowing during a table rewrite. AWS published a two-part series...
canonical: https://daily.dev/posts/postgres-19-gets-repack-aurora-lock-contention-gets-fixed-4x-ljtfopovw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Postgres 19 gets REPACK, Aurora lock contention gets fixed 4x | daily.dev
og:description: Postgres 19 beta 3 ships REPACK, a concurrent alternative to VACUUM FULL that keeps writers flowing during a table rewrite. AWS published a two-part series...
og:url: https://daily.dev/posts/postgres-19-gets-repack-aurora-lock-contention-gets-fixed-4x-ljtfopovw
og:image: https://api.daily.dev/og/posts/ljtfOPOvw.png
og:image:alt: Postgres 19 gets REPACK, Aurora lock contention gets fixed 4x
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.

# Postgres 19 gets REPACK, Aurora lock contention gets fixed 4x

**[Databases Digest](https://daily.dev/sources/databases_digest)** · 0 upvotes · 0 comments

## Summary

Postgres 19 beta 3 ships REPACK, a concurrent alternative to VACUUM FULL that keeps writers flowing during a table rewrite. AWS published a two-part series showing how to diagnose and fix Aurora PostgreSQL row-lock contention, taking a flash-sale workload from 4,900 TPS back up past 21,000. Agoda detailed replacing a 72-shard SQL Server cache with DragonflyDB for an 8x P99 latency win, and a benchmark found most RAG rerankers do worse than a coin flip on negation.

## Content

**TLDR:** Postgres 19 beta 3 ships REPACK, a concurrent alternative to VACUUM FULL that keeps writers flowing during a table rewrite. AWS published a two-part series showing how to diagnose and fix Aurora PostgreSQL row-lock contention, taking a flash-sale workload from 4,900 TPS back up past 21,000. Agoda detailed replacing a 72-shard SQL Server cache with DragonflyDB for an 8x P99 latency win, and a benchmark found most RAG rerankers do worse than a coin flip on negation.

---

## Postgres 19 beta 3 adds REPACK for online table rewrites

REPACK merges VACUUM FULL and CLUSTER into one command, with a CONCURRENTLY option that rewrites a bloated table while it stays readable and writable. In benchmarks, REPACK CONCURRENTLY let 3,988 writes through during a rewrite versus 33 for VACUUM FULL, though it took over four times longer to finish. There's a catch: the final file swap still needs a brief ACCESS EXCLUSIVE lock, which can queue behind a slow query and cause multi-second stalls. It also won't touch tables without a primary key or replica identity, unlogged tables, or partitioned tables. A companion tool, pg-repack-plan, checks which of your tables are eligible for the online path, even on pre-19 servers. [Read more](https://daily.dev/posts/0fYtP6suO)

## Aurora PostgreSQL lock contention fix takes flash-sale throughput from 4,900 to 21,000 TPS

Part one of this AWS series walked through why row-level locking cripples throughput under high concurrency, simulating a flash sale where 25 hot inventory rows dropped throughput 55%, from about 10,900 to 4,900 TPS. Part two uses CloudWatch Database Insights' Lock Tree to diagnose the contention, then applies fixes: SKIP LOCKED with row striping, optimistic concurrency, converting updates to inserts, and tuned timeout parameters. The striped SKIP LOCKED approach with bounded retries pushed throughput past 21,000 TPS in the same workload. Worth reading together if you're running anything with hot rows on Aurora or RDS Postgres. [Read more](https://daily.dev/feed-by-ids?id=pjjVnrtvx&id=EI2WhsoKH)

## Agoda swaps a 72-shard SQL Server cache for DragonflyDB, cuts P99 latency 8x

Agoda's tier-one hotel Price Cache was handling roughly 300,000 reads and 1.5 million writes per second across 1.5TB of pricing data on 72 SQL Server shards. Moving to DragonflyDB got P99 read latency down to around 8ms, an eightfold improvement. The migration used staged dual reads with Prometheus-tracked parity checks, gradual A/B traffic shifting, and a decentralized failover setup where application pods independently detect cache-hit divergence without a central coordinator. [Read more](https://daily.dev/posts/AsavFSekF)

## Most RAG rerankers fail negation tests worse than a coin flip

A benchmark of 13 local embedding models and rerankers found that when the correct document paraphrases a query but the wrong one shares its exact wording, most models pick wrong 72-74% of the time. Oddly, the newer, higher-ranked Qwen3-Reranker-0.6B scored only 10%, while the older bge-reranker-v2-m3 hit 60% and its Turkish fine-tune hit 72%. A local LLM, Gemma 4 26B-A4B, scored 100% at about 330ms per decision on an Apple M5, but performed worse than a cross-encoder when asked to rank 20 candidates at once. Takeaway: test rerankers on your own contradiction pairs instead of trusting leaderboard rank. [Read more](https://daily.dev/posts/jyHykVWRZ)

---

## Also notable

- **MySQL INSTANT DDL breaks EXCHANGE PARTITION:** On MySQL 8.4.11, ALTER TABLE EXCHANGE PARTITION fails with ERROR 1731 if either table ever had a column added via ALGORITHM=INSTANT, and the only fix is a full table rebuild or pt-online-schema-change. [Read more](https://daily.dev/posts/nefKvP8hW)
- **Valkey 9.1's memory savings claim needs an asterisk:** Valkey 9.1.2's advertised '20% memory reduction for strings under 128 bytes' is real but the 128-byte figure covers header, key, TTL and value combined, so with a 16-byte key the actual cutoff where savings disappear is 97 bytes. [Read more](https://daily.dev/posts/CBZYw5DRZ)
- **ClickHouse's query cache is vulnerable to stampedes on TTL expiry:** When a cached entry expires, every concurrent identical query recomputes at once instead of one refreshing while others wait (tracked in issue #99226), and since each cluster node keeps its own isolated cache, a stampede can hit every replica behind a load balancer simultaneously. [Read more](https://daily.dev/posts/2AKCfCl1c)
- **Redis 8.10 cuts hash memory usage up to 50%:** The new compact hash templates and HIMPORT command boost hash loading throughput up to 2x, alongside new Stream size-bounding options and an incremental backup/restore command family. [Read more](https://daily.dev/posts/kvMQUYcd1)
- **Django 6.1's FETCH_PEERS collapses a 2,001-query N+1 loop into 2:** The new fetch_mode(FETCH_PEERS) setting cut wall time from 1.14s to 13ms matching select_related's performance, but silently falls back to full N+1 when combined with QuerySet.iterator(). [Read more](https://daily.dev/posts/iae0BXlBP)

---

[View this post on daily.dev](https://daily.dev/posts/postgres-19-gets-repack-aurora-lock-contention-gets-fixed-4x-ljtfopovw)

```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":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/postgres-19-gets-repack-aurora-lock-contention-gets-fixed-4x-ljtfopovw","headline":"Postgres 19 gets REPACK, Aurora lock contention gets fixed 4x","text":"Postgres 19 beta 3 ships REPACK, a concurrent alternative to VACUUM FULL that keeps writers flowing during a table rewrite. AWS published a two-part series showing how to diagnose and fix Aurora PostgreSQL row-lock contention, taking a flash-sale workload from 4,900 TPS back up past 21,000. Agoda detailed replacing a 72-shard SQL Server cache with DragonflyDB for an 8x P99 latency win, and a benchmark found most RAG rerankers do worse than a coin flip on negation.","url":"https://daily.dev/posts/postgres-19-gets-repack-aurora-lock-contention-gets-fixed-4x-ljtfopovw","datePublished":"2026-09-15T04:17:56.172Z","dateModified":"2026-09-15T04:17:20.373Z","author":{"@type":"Organization","name":"Databases Digest","logo":"https://media.daily.dev/image/upload/s--ir1hdV8b--/f_auto,q_auto/v1773839400/logos/databases_digest?_a=BAMAMiiu0","url":"https://daily.dev/sources/databases_digest"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/databases_digest","name":"Databases Digest"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Databases Digest","item":"https://daily.dev/sources/databases_digest"},{"@type":"ListItem","position":3,"name":"Postgres 19 gets REPACK, Aurora lock contention gets fixed 4x"}]}
```

