Skip to content
  1. Planet PostgreSQLGuides & Cases

    PostgreSQL 19 DBA Walkthrough, Part 2: Read Your Writes with WAIT FOR LSN

    A two-session psql walkthrough shows how PostgreSQL 19 uses WAIT FOR LSN to read your writes on an asynchronous standby. It captures the WAL insert LSN on the same primary connection after commit and also covers timeouts, monitoring waiters, and a stalled standby.

    Brief · Based on the source excerpt

    Why It MattersWhen reads from an asynchronous standby must reflect a just committed write, the application can wait before reporting success without adding that wait to the primary’s synchronous commit path.

  2. Datadog DevelopersProducts & Tools
  3. Crunchy DataGuides & Cases

    Queries captured by pg_stat_statements can be re-run from psql by passing arguments with the \bind command when they are simple SELECT statements. Statements with IN lists don't work because pg_stat_statements collapses them; use EXPLAIN (GENERIC_PLAN) instead.

    Why It MattersThe approach works for parameterized replay of simple SELECTs sampled from pg_stat_statements; statements with IN lists must fall back to EXPLAIN (GENERIC_PLAN) since their parameters can't be matched.

  4. Percona PostgreSQL BlogGuides & Cases

    How PostgreSQL 19’s WAIT FOR LSN Can Replace Synchronous Replication

    PostgreSQL 19’s WAIT FOR LSN lets apps wait after commit for a standby flush or replay, for durability on both servers or read-your-writes. A timeout leaves the outcome unknown. Percona’s author recommends waiting for 19.1 before production use because 19.0 lacks a critical fix.

    Why It MattersWaiting on demand keeps standby outages from stalling primary commits, but standby connection pools need capacity for sessions held open while they wait.

  5. Percona PostgreSQL BlogBenchmarks

    DBaaS Beyond the Hyperscalers, Part 2: PostgreSQL Performance on Scaleway, UpCloud, Vultr, OVHcloud and Exoscale

    Percona benchmarked managed PostgreSQL from Scaleway, UpCloud, Vultr, OVHcloud and Exoscale on identical 4 shared vCPU / 16 GB RAM plans using HammerDB TPC-C.

    Why It MattersMySQL scaling curves do not transfer to managed PostgreSQL: most providers' throughput flattens as concurrency rises, so sizing should follow provider-specific tests at the target concurrency and data size.

  6. Planet PostgreSQLBenchmarks

    Hollis Varden: Upserts, Partitions, Triggers and String Matching on PostgreSQL 18

    Hollis Varden ran 21 small benchmarks on PostgreSQL 18. 6 built from source with default settings and C collation. On a 1,000,000-row table with 100,000 incoming rows (50,000 existing), `INSERT .

    Brief · Based on the source excerpt

    Why It MattersFiltering no-change upserts with IS DISTINCT FROM sharply reduces WAL volume, though the original still recorded 4.6 MB of WAL, so the optimization is not write-free.

  7. Planet PostgreSQLGuides & Cases

    Umair Shahid: Where 39% of the WAL Came From

    Umair Shahid breaks down a Supabase customer case writing 1. 8 TB of WAL per day, where about 39% was full-page-image overhead caused by the five-minute checkpoint_timeout default.

    Brief · Based on the source excerpt

    Why It MattersFor workloads that frequently modify hot tables and indexes, check whether repeated checkpoints are inflating WAL through full-page images rather than disabling the full-page writes that protect against torn pages.

  8. Planet PostgreSQLBenchmarks

    The Hidden Costs of CREATE TEMP TABLE in Postgres 18: Catalog Bloat and LWLock:SInvalWrite

    In Postgres 18, a CTE achieved 23x the TPS of creating a temp table per transaction. With 5000 idle sessions, temp-table DDL reached 127 TPS and 249 TPS in two runs against a 500 TPS target.

    Brief · Based on the source excerpt

    Test conditionsThe benchmarks quantify the throughput gap when creating a temp table per transaction and how far temp-table DDL falls short of its target with many idle sessions.

  9. CYBERTEC PostgreSQL BlogProducts & Tools

    CYBERTEC PGEE GPU Edition: GPU-Accelerated PostgreSQL for Enterprise Analytics

    CYBERTEC has introduced PGEE GPU Edition, which extends CYBERTEC PostgreSQL Enterprise Edition with GPU-accelerated execution for supported analytical queries, with the PostgreSQL query planner choosing a GPU path when suitable and no application or SQL changes required.

    Why It MattersAcceleration covers only supported analytical query patterns, with some floating-point aggregates kept on CPU to preserve PostgreSQL numerical behaviour, so adoption requires measuring representative queries and inspecting execution plans.

  10. Postgres.fmGuides & Cases

    Postgres.fm Breaks Down the Hidden Costs of CREATE TEMP TABLE

    Postgres. fm episode 193 examines the hidden costs of CREATE TEMP TABLE: dead tuples, catalog bloat, and the shared invalidation queue every session must read.

    Why It MattersWhen temporary tables are repeatedly created and dropped in the request path, distinguish baseline catalog churn from shared invalidation lock contention amplified by many idle sessions.

  11. PostgreSQL Official NewsReleases

    AgensGraph 2.18.6.1 Expands ISO GQL Support on PostgreSQL 18.6

    AgensGraph 2.18.6.1 adds ISO GQL clauses alongside openCypher on PostgreSQL 18.6. With edge-label indexes used at each hop, a two-hop traversal on the 30-million-edge soc-Pokec graph finished in milliseconds in the team's test, versus not finishing within 20 seconds on 2.17.

    Why It MattersA two-hop test on the same graph across both versions illustrates how using edge-label indexes at each hop can cut traversal time.

  12. Postgres.fmBenchmarks

    Postgres.fm: The Real Cost of UUIDv4 vs UUIDv7 Primary Keys on Postgres 18

    On Postgres. fm, Nik and Kirk Wolak compare what a random UUIDv4 primary key actually costs against time-ordered UUIDv7 or int8 keys on Postgres 18, covering index size, WAL and full-page writes, and insert rates once the index outgrows memory.

    Why It MattersWhen choosing a primary key, weigh insert throughput after the index outgrows memory alongside index size and full-page write overhead, rather than comparing key widths alone.

  13. CYBERTEC PostgreSQL BlogProducts & Tools

    CYBERTEC PGEE Adds a GPU Execution Path to PostgreSQL

    CYBERTEC has introduced PGEE GPU, which gives PostgreSQL a planner-controlled GPU execution path while keeping SQL, schema and application interfaces unchanged.

    Why It MattersLarge analytical scans and aggregates can run on GPUs without application changes, with cost-based planner selection and CPU fallback, on PostgreSQL v19 and later.

  14. CYBERTEC PostgreSQL BlogProducts & Tools

    CYBERTEC Introduces PGEE GPU: GPU-Accelerated Analytics Inside PostgreSQL

    CYBERTEC released PGEE GPU, which executes the heavy analytical parts of a query on NVIDIA GPUs inside PostgreSQL while SQL, schema, drivers, transactions and backups stay unchanged.

    Why It MattersFor regulated reporting and risk workloads, PGEE GPU trades speed for a guarantee that every accelerated result is compared character-for-character against stock PostgreSQL and discarded on mismatch, so each workload still needs benchmarking.

  15. Percona PostgreSQL BlogProducts & Tools

    PgQ and PgQue: Workflow Engines You Might Need in PostgreSQL

    Percona's post presents PgQ and PgQue, PostgreSQL-native workflow engines that append events to a partitioned log instead of updating status flags in place, avoiding bloat and concurrency bottlenecks.

    Why It MattersFor queue tables bloated by high-frequency status updates, PgQue moves consumption position to consumers over an append-only log, at the cost of tick-based cursors and no per-key ordering.

  16. 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.

  17. 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.

  18. 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.