#​597 — April 24, 2025

Web Version

👋 We took last week off for Easter, but now we're back every week till early June. Let's go!
__
Peter Cooper, your editor

Together with  Aiven

Postgres Weekly

Hacking the Postgres Statistics Tables for Faster Queries — Postgres’s internal statistics drive query planning and index choices, but the process isn’t perfect. This practical post shows how to manually add extended statistics to teach Postgres about useful correlations — and how even a single CREATE STATISTICS can make a query 97x faster.

Louise Grandjonc Leinweber

Fully Managed Postgres with Aiven for PostgreSQL® — Set up a fully managed Postgres database in 10 minutes and focus on your code – let Aiven do the heavy lifting.

Aiven sponsor

IN BRIEF:

Scaling Certificate Transparency with 100B+ Rows of DataMerklemap is a service that aggregates together certificate transparency data for issued TLS certificates – here’s how they use Postgres for task of managing data spanning 20TB of storage and 100 billion rows.

Pierre Barre

Striping Postgres Data Volumes - A Free Lunch? — Depending on your usage patterns, yes, striping together cheap cloud volumes can yield significant throughput and latency benefits.

Kaarel Moppel

Reordering Expressions in SQL Queries for Performance — Techniques to speed up query execution, with a focus on rearranging conditions in filter expressions, JOINs, HAVING clauses, and similar constructs.

Andrei Lepikhov

📄 Fixing a Postgres strchrnul Compile Error on macOS 15.4 – An issue pgenv users, in particular, might be running into. David E. Wheeler

📄 Converting JSON Documents to Relational Tables Leo Hsu and Regina Obe

🛠 Code and Tools

Doltgres Beta Launch: A Version Controlled SQL Database — Doltgres is a Go-powered Postgres-flavored variant of the Dolt SQL database that offers Git-style merging and forking in a Postgres-wire compatible form.

Zach Musgrave (DoltHub)

💡 The Dolt folks also report Django works with Doltgres out of the box.

A Postgres Language Server for Your IDE — Most modern code editors support language servers for providing language-specific coding enhancements like auto-complete, syntax highlighting, and refactoring. Supabase has come up with such a server for Postgres too, offering linting, autocompletion, error highlighting and type-checking out of the box.

Steinrötter and Domke (Supabase)

  • PostgreSQL Anonymizer 2.1 – Extension that hides or replaces personally identifiable information, now with support for blurring images too.

  • oid2bytea 1.0 – Tool to convert large objects columns to bytea.

  • QuestDB 8.3 – Java-powered time-series database with Postgres wire protocol compatibility.

  • VectorChord 0.3 – Scalable, fast, and disk-friendly vector search.

  • BemiDB 0.51 – Single binary Postgres read replica optimized for analytics.

  • PeerDB 0.27.8 – Stream data from Postgres to data warehouses, queues and storage engines.

  • pgmoneta 0.16.0 – Backup / restore solution. (Docs.)

  • Pigsty 3.4 – 'Batteries-included' Postgres distribution.