Plus getting rid of a 4TB table, why connections close 'unexpectedly', and pgModeler's biggest release ever.

#​672 — November 4, 2026

Web Version

Together with  EDB Postgres AI

Postgres Weekly

Postgres 19's REPACK: Built-In, Online Bloat Cleanup — Craig's favorite new Postgres feature is the one he thinks DBAs will care about most. REPACK folds VACUUM FULL and CLUSTER into one command and adds a CONCURRENTLY mode that keeps the table readable and writable, using logical decoding (a la pg_squeeze). He digs into its benefits and how to use it here.

Craig Kerstiens (Snowflake)

⭐ Postgres 19 remains on track for November 19, with RC2 due on November 12. Jonathan Katz has posted the draft press release for review, and the draft release notes continue to expand.

Sub-Second Personalization on One Lakehouse — Live demo: See how EDB Postgres AI delivers sub-second next-best-action on one copy of data in Apache Iceberg. Postgres, WarehousePG and ClickHouse share one catalog, with no pipelines between engines. Watch the demo.

EDB sponsor

Getting Rid of a 4 Terabyte Table Efficiently — How do you get rid of a 4 TB table on a primary with ten replicas with as little impact as possible? Radim compares the obvious DROP TABLE approach against batch deletes and a copy-and-swap, with the measured pros and cons of each.

Radim Marek

💡 In a similar vein, NexHealth has written up how they moved 4 TB out of a live Postgres database into its own Aurora cluster with no downtime.

IN BRIEF:

Burnt TOAST: Why DBAs Dread Large Text Columns — A tour of how Postgres stores oversized column values, with benchmarks showing why keeping the heap small can speed up scans and updates that leave those values untouched, and why fetching them can still be expensive.

Shaun Thomas (pgEdge)

💡 Sticking to the TOAST theme, Franck Pachot ponders: do TOAST's compression and out-of-line thresholds suit typical JSONB document sizes?

'server closed the connection unexpectedly' Explained and Measured — Chris reproduces connection failures across six clients on Postgres 13, 15, 17 and 18, showing why the same failure produces different diagnostics, and why a lost connection during a COMMIT can leave the outcome uncertain.

Chris van Eijk

📄 Logical Replication Beyond One Writer – A walkthrough of building multi-region replication, testing failover and handling schema changes, with a runnable Docker lab. Dimitri Fontaine

📊 Benchmarking Vector Search in Six Database Engines – Postgres and pgvector go up against MongoDB, MariaDB, AliSQL and Valkey. Evgeniy Patlan (Percona)

📄 How Replication Slots Can Fill Your Disk Anugya Sinha (Microsoft)

📄 How Real is 'Autonomous Postgres'? Vibhor Kumar (EDB)

📰 Classifieds

📺 New 4-hour freeCodeCamp course: Watch a 1.6-second Postgres query drop to 10 ms with TimescaleDB continuous aggregates.

RELEASES AND CODE:

  • pgModeler 2.0 (above) – Billed as "the biggest release in the history of the project", the database modelling tool gets a multi-scene canvas and Postgres 18 support, but moves import, diff and SQL execution to a paid 'Plus' edition.

  • Melange – Compiles Zanzibar-style, relationship-based authorization from OpenFGA models into PL/pgSQL functions, so a permission check is just a SELECT check_permission(...) away, with no separate service or store.

  • 🌐 PostGIS 3.7.0 – The geospatial extension (now targeting Postgres 19) adds coverage edges, Float16 rasters and faster ST_DWithin. Postgres 12/13 support is dropped, and the geocoder and address standardizer move to separate repos.

  • 🔒 PostgreSQL Anonymizer 3.3 – Dalibo's data-masking extension fixes 12 vulnerabilities and existing users are urged to upgrade.

  • 🔒 pgAdmin 4 v9.19 – Fixes 15 CVEs. Server-mode users should upgrade, setting two new admin allowlists first.

  • Postgres.js 4.0 – Node.js driver rewritten with a scheduler to stop slow queries blocking fast ones, SCRAM channel binding and two security fixes.

  • TimescaleDB 2.31 – Tiger Data's time-series extension gains a new integer compressor (off by default for now, but expected to be on by default in 2.32) that can make databases ~10% smaller and typical queries ~50% faster.

  • pg_duckdb 1.2.0 – The DuckDB-in-Postgres extension moves to DuckDB 2.0 and adds initial Postgres 19 support. It's 'not ready for production use' for now.

  • pg_lion 0.3 – A bitmap-based inverted index type (inspired by roaring bitmaps, hence the name!) for faster counts, facets and GROUP BY on large tables.

  • Reylo 0.7 – Import plain .sql files into TypeScript with types inferred from your database. From the creator of Zod.