Postgres Weekly
Plus Postgres 19 has a scheduled release date, query plan rewriting and hints, and a pgvector security update.

#​668 — October 7, 2026

Web Version

Together with  EDB Postgres AI

Postgres Weekly

Query Plan Rewriting in Postgres — A tour of the Postgres 18 planner's query transformations, including constant folding, inlining, subquery flattening, and join elimination. It's also useful to learn about the cases it won't rewrite, some of which can trip up experienced users (though Postgres 19 adds NOT IN rewriting when NULLs can be ruled out).

Phil Eaton

Govern EDB Postgres at Scale with Red Hat Ansible — Managing users, privileges, schemas, extensions and pg_hba by hand across a big Postgres fleet? See how edb.epas_postgresql, a Red Hat-certified Ansible Collection, enforces consistency at scale. Live with Red Hat and EDB, Oct 15.

EDB sponsor

Query Plan Hints in Postgres 19 — It may be “a new Postgres feature you will probably never need” but pg_plan_advice and pg_stash_advice are worth having on your radar for when you do need to steer the planner the right way. EXPLAIN (PLAN_ADVICE) will also let you see what's going on.

Elizabeth Garrett Christensen

IN BRIEF:

'PlanetScale Released Text Search and We Have a Lot to Say' — PlanetScale recently unveiled TIN, a full-text search extension, with benchmarks showing it to be much faster in queries than the open source ParadeDB. So ParadeDB got to work, and say they've “closed the gap”.

Ming Ying (ParadeDB)

Upgrading a 56TB Database by Mostly Not Moving It — Facing downtime due to a mandatory reboot deadline on Aurora, Trigger's engineers moved just 2% of their data to PlanetScale, leaving the rest behind. A candid postmortem involving a pgcopydb patch and a failed first cutover.

Daniel Sutton (Trigger)

Running Apache Cloudberry as Postgres Extensions — An experiment to run Apache Cloudberry (an open source descendant of Greenplum, the Postgres-based parallel data warehouse) as a set of extensions on a lightly patched Postgres 19. It surfaces some interesting limitations to Postgres' extension mechanism.

Igor Suhorukov

📄 What is Direct I/O, and Why Does ClickHouse Managed Postgres Use It for Backups? Kaushik Iska (ClickHouse)

📄 Resolving Replication Lag with Heartbeat Tables in CDC Scenarios Luo and Ooi (Amazon)

📰 Classifieds

Columnar storage without leaving Postgres: TimescaleDB compresses big tables up to 95% and speeds up scans. Get $1000 credit.


Visual editors for triggers and functions. A PL/pgSQL debugger that needs no extensions. Try dbForge Studio for PostgreSQL 2026.2 free.


⏱️ Postgres ran a prepared statement fast exactly five times. The sixth was 746% slower. Catch the flip in your query. Now in preview.

RELEASES AND CODE:

🤖 Microsoft Unveils an MCP Server for Postgres — They’re far from the first, but it’s interesting to see Microsoft step into this area with a Rust-powered (but installed via npm) MCP server to allow AI coding agents to work with Postgres, whether you’re on Azure or not.

Aditi Gupta (Microsoft)

💡 Microsoft also has a repo of 'Postgres skills' (which you can read here) covering both general Postgres usage and Azure platform specifics.

📊 pgwatch 6.0: Prometheus Sources, Rebuilt Dashboards, and a Sturdier Collector — The popular Postgres metrics collector and Grafana visualizer (demo) adds Prometheus exporters as sources, rebuilds its dashboards on Grafana 13, and copes better with databases that stop responding.

CYBERTEC PostgreSQL

pgx-bm25 1.0: A Pure C BM25 Index Extension — A new PostgreSQL-licensed BM25 ranked full-text search extension whose indexes live in the index relation's pages so WAL logging, replication, and VACUUM all work as usual with no separate engine or runtime to manage.

PGX Inc.

  • ⚠️ pgBackRest 2.59.3 – Fixes a rare weak encryption subkey bug that upgrading alone won't repair, so check the notice if your repo is encrypted.

  • pg_textsearch 1.5 – Tiger Data's BM25 ranked text search extension. Adds boolean and phrase filtering via tsquery, plus Postgres 19 support.

  • ⚠️ pgvector 0.8.7 – The ubiquitous vector search extension fixes a bug where creating an IVFFlat index could lead to arbitrary code execution.

  • Debezium 3.7 – The popular change data capture platform. Can now take incremental snapshots from read-only replicas and has better support for Postgres' geometric column types.

  • pg_ivm 1.16 – The incremental view maintenance extension adds Postgres 19 support.

Issue 667 #668