Skip to content
  1. pganalyze BlogGuides & Cases

    Postgres in Production, Part 6: Diagnosing High Cardinality Workloads in pg_stat_statements

    Part 6 of pganalyze's Postgres in Production series explains how to tell whether a workload is generating more unique normalized queries than pg_stat_statements.

    Why It MattersFor workloads that frequently generate variable-length IN lists, upgrading to PostgreSQL 18 can reduce statement entry usage through normalization, leaving room for other queries’ tuning metrics.

  2. select * from depesz;Releases

    PostgreSQL 19 SQL/PGQ Patch Rolled Back Amid Syntax Questions

    The SQL/PGQ implementation proposed for PostgreSQL 19 has been rolled back. It would have added GRAPH_TABLE, property-graph DDL, new catalogs and information-schema views, psql \dG, and pg_get_propgraphdef(), while the author questions its practical advantages over ordinary joins.

    Why It MattersThe post documents SQL/PGQ’s proposed design and rollback while presenting a practitioner’s concrete questions about its syntax benefits and learning cost.

  3. Haki Benita BlogGuides & Cases

    How to Prune PostgreSQL Partitions When Filtering on Non-Partition Key Columns

    Haki Benita demonstrates how PostgreSQL can prune partitions when filtering on non-partition key columns if the data follows certain patterns. In a table partitioned by timestamp, local indexes let a query filtering on session_id avoid sequential scans, but it still visits every partition.

    Why It MattersWhen session IDs correlate strongly with event time and historical partitions no longer change, CHECK constraints can skip irrelevant partitions without changing the time-based partition key.

  4. select * from depesz;Releases

    PostgreSQL 20 Adds Backend-Level Lock Statistics

    Michael Paquier committed a patch on June 30, 2026 adding per-backend lock statistics to PostgreSQL 20, covering lock wait counts, wait times, and fastpath_exceeded counts.

    Why It MattersPer-backend lock statistics break down aggregate waits by process and can be joined with pg_stat_activity to diagnose contention in running sessions.

  5. Tomas Vondra Postgres BlogPerspectives

    Tomas Vondra Reexamines PostgreSQL random_page_cost

    Tomas Vondra argues that random_page_cost also compensates for PostgreSQL cost-model gaps around memory, cache locality, and concurrent resource contention.

    Test conditionsThe post reframes random_page_cost as a proxy for memory, cache locality, and contention effects, and recommends tuning it through workload monitoring rather than storage benchmarks alone.

  6. Supabase Database ChangelogProducts & Tools

    Supabase Developer Update: June 2026

    Supabase’s June developer update covers a $500M Series F at a $10B pre-money valuation, the open-source-only Multigres v0.1 alpha release, and new product integrations and features. It also announces metered log usage: Pro and Team plans include 5 GB of ingest and 1,000 GB of queries per month.

    Why It MattersMultigres brings sharding, connection pooling, automatic failover, and backup orchestration under one management layer, but the current alpha is open source only and not yet available on Supabase.

  7. Tomas Vondra Postgres BlogPerspectives

    How PostgreSQL Selects New Committers

    PostgreSQL picks new committers through an informal annual process: roughly 30 existing committers nominate and discuss candidates on a private mailing list in February–March, and the core team confirms the list before invitations go out, usually wrapping by mid-May.

    Why It MattersDelegating candidate assessment to committers grounds decisions about repository access in firsthand experience with candidates’ code and collaboration.

  8. Tomas Vondra Postgres BlogBenchmarks

    PostgreSQL random_page_cost Costs More Than the Default Suggests

    Tomas Vondra’s experiments estimate random_page_cost at about 25–35 on local SSDs, far above the default 4. 0, with an even larger gap on Azure remote SSDs.

    Why It MattersThe experiments quantify how random_page_cost diverges from real I/O behavior and connect GUC tuning with caching, prefetching, and planner cost-model improvements.

  9. Haki Benita BlogGuides & Cases

    Why Row Locks Can Produce Surprising Join Results in PostgreSQL

    In PostgreSQL, an inner join waiting for a row lock can return no rows if another transaction updates the foreign key and commits, even though the foreign key constraint is enforced.

    Why It MattersAt Read Committed, transactions that validate the current foreign-key relationship can lock the referencing row before looking up the related row, rather than relying on a join formed before the lock wait.

  10. Haki Benita BlogGuides & Cases

    Unconventional PostgreSQL Optimizations

    Haki Benita explores unconventional PostgreSQL techniques: using CHECK constraints to skip full table scans, using function-based indexes to lower cardinality, and enforcing uniqueness with a hash index.

    Why It MattersFor long text that only needs equality lookups and is not referenced by foreign keys, a hash-backed exclusion constraint can save index space but cannot support ON CONFLICT DO UPDATE.