#​592 — March 13, 2025

Web Version

Together with  pgAnalyze

Postgres Weekly

1 Trillion Rows in Citus?“Postgres scales,” but just how far does that go? Hans-Jürgen decided to find out, running a little (or is it big?) experiment to see if a 1 trillion row table is even achievable.

Hans-Jürgen Schönig

 Ways to Cancel Queries in Postgres — If you’ve got a query or two hogging Postgres’s resources, terminating them is an option, and there are several ways to go about it.

Petr Kada

▶ Don’t Let Postgres Maintenance Slip Through the Cracks — Secure your spot to learn the proactive maintenance practices that uncover hidden database performance risks, like slow queries, checkpoint behavior, & connection issues, before they escalate.

pganalyze sponsor

QUICK BITS:

Postgres Gets a Self-Join Elimination Optimization — Several years ago, someone suggested a join optimization where redundant inner self-joins (often added by ORMs) can be removed under certain conditions. This so-called Self-Join Elimination (SJE) optimization has now been committed to Postgres and is explained in this GitHub commit.

Postgres Repo

📄 Waiting for Postgres 18: Allow Parallel CREATE INDEX for GIN Indexes Hubert depesz Lubaczewski

📄 Waiting for Postgres 18: Allow json{b}_strip_nulls to Remove Null Array Elements Hubert depesz Lubaczewski

📄 When HASH Partitioning Works Better Than RANGE Umair Shahid

🛠 Code and Tools

Introducing pgNow: A Point-in-Time Diagnostic Tool — A free (but not open – it’s in preview behind an email wall) cross-platform desktop tool created by Redgate to highlight and analyze live data about queries, indexes, configuration settings, and other important elements of a Postgres cluster’s operation. Even if you don’t grab it, Ryan gives a thorough overview of what it offers here.

Ryan Booz

  • PGSync 4.0 – Middleware for syncing data from Postgres to Elasticsearch or OpenSearch.

  • 📊 PEV2 v1.14 – Vue component for visualization of Postgres execution plans.

  • DoltgreSQL 0.18 – Version controlled Postgres-a-like with Git-style functionality.

  • pgenv 1.4 – Postgres binary manager.