Topic

PostgreSQL

Monitor PostgreSQL database developments, extension releases, and version updates. Our digest aggregates query optimization, indexing, and replication discussions from database administrator communities.

What this topic tracks

  • Database releases and ecosystem updates
  • Query, indexing, and modeling practices
  • Operational lessons from production systems

PostgreSQL · 107 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

20 stories

The reverts will continue until morale improves

peter.eisentraut.org · 9 Oct

Database · PostgreSQL

PostgreSQL 19 reverted roughly 8–10 significant features after beta began, driven by a mix of code defects, extreme system complexity, LLM-assisted review uncovering long-tail edge cases, and reduced beta-period review while senior developers handled the Vulnpocalypse.

The release schedule limited time for fixes, while an experimental status for immature features is not yet available. PostgreSQL 19 remains strong, with REPACK CONCURRENTLY, logical replication of sequences, and planner hinting via pg_plan_advice; many reverted features may return, and PostgreSQL 20 already has partially ready work.

The only scalable delete in Postgres is DROP TABLE

planetscale.com · 11 Jun

Database · PostgreSQL · SQL

In PostgreSQL, row-level DELETE operations create bloat by adding dead tuples and increasing vacuuming demand.

They do not immediately reclaim disk space. For large-scale data cleanup, scaling strategies favor DROP TABLE or TRUNCATE, as they efficiently release space at the OS level. Partitioning is recommended to transform bulk deletions into manageable, recurring table maintenance tasks.

Show HN: Postgres extension for BM25 relevance-ranked full-text search

github.com · 31 Mar

Database · PostgreSQL · SQL

pg_textsearch is a high-performance PostgreSQL extension providing BM25 ranking for text search.

It features simple syntax, Block-Max WAND optimization for fast top-k queries, and parallel index builds. Designed for production, it supports PostgreSQL 17-18, partitioning, and configurable ranking parameters, making it a scalable alternative for textual information retrieval within the database.

Postgres 19 delayed after AI reviewers find more bugs than humans can fix

theregister.com · 16 Oct

Backend · Database · PostgreSQL

PostgreSQL 19 has been delayed until around November 19, with eight to 10 significant features postponed to PostgreSQL 20 after LLM-assisted code reviews exposed architectural defects and a long tail of edge-case bugs that developers could not resolve before release.

SQL Property Graph Queries (SQL/PGQ) is among the removed features. PostgreSQL 19 will still include REPACK CONCURRENTLY, and Peter Eisentraut says the release should be robust after additional scrutiny.

Postgres data stored in Parquet on S3: LTAP architecture explained

databricks.com · 30 Jun

Database · Distributed Systems · PostgreSQL

Reynold Xin discusses the Lakebase architecture, which redefines OLTP databases by decoupling compute from storage.

By using distributed services like SafeKeeper and PageServer to externalize WAL and data files, Lakebase achieves elastic scaling, durability, and serverless flexibility. Furthermore, the LTAP approach enables real-time analytics on transactional data using open columnar formats like Parquet, eliminating the need for ETL or CDC.

Replacing Protobuf with Rust to go 5 times faster

pgdog.dev · 22 Jan

Performance · PostgreSQL · Rust

Lev Kokotov discusses a significant performance optimization in PgDog, a PostgreSQL scaling proxy, by replacing Protobuf serialization with direct Rust-to-C bindings.

While PgDog uses libpg_query for SQL parsing, the team discovered that Protobuf overhead was a major bottleneck. By leveraging bindgen and AI-assisted wrapper generation, they implemented direct mapping between Rust structs and the Postgres AST. This architectural shift resulted in a 5x improvement in query parsing and a 10x speed boost in deparsing. The solution utilizes a recursive algorithm that ensures high CPU cache locality and minimal memory allocation, providing a 25% overall performance gain in benchmarks and lowering operational costs for the proxy.

Barman – Backup and Recovery Manager for PostgreSQL

github.com · 29 Apr

Database · PostgreSQL · Python

Barman is an open-source Python-based tool for PostgreSQL disaster recovery, now hosted on GitHub since version 2.13.

Managed by EnterpriseDB, it enables remote backups for business-critical environments, assisting DBAs in recovery. It is licensed under GNU GPL 3 and provides comprehensive documentation, community support, and professional services for database maintenance.

PostgreSQL Extensions in Go

jespino.github.io · 21 Nov

Database · Go · PostgreSQL

gopgext builds PostgreSQL extensions from plain Go using TinyGo, generating C glue, installation scripts, and control files from annotated functions.

Go code can use the standard library, map common types to SQL, run SPI queries, return SQLSTATE errors, and implement functions, triggers, aggregates, index access methods, foreign data wrappers, and query hooks. Ports of contrib modules pass regression tests, while copied results and protected error handling enable multiple Go extensions in one backend.

Pgrx: Build Postgres Extensions with Rust

github.com · 25 Apr

PostgreSQL · Rust · Software Architecture

pgrx is a framework for developing safe and idiomatic PostgreSQL extensions using Rust.

It supports Postgres versions 13 through 18, offering a managed development workflow via cargo-pgrx, automatic type mapping, and first-class UDF support. It prioritizes memory safety by translating Rust panics into Postgres errors while providing advanced hooks into Postgres internals.

What today's software owes to Bronze Age clocks

planetscale.com · 7 Oct

Backend · Database · PostgreSQL

Leaky buckets, first used as ancient water clocks, became a low-cost software pattern for admission control: work is admitted when capacity exists and throttled as the bucket refills over time.

Shopify uses query-cost buckets for GraphQL rate limiting. In 2026, PlanetScale brought similar decision gates to Postgres with Database Traffic Control, which estimates query costs, applies tagged resource budgets, and can warn or block queries based on server share, burst capacity, per-query limits, and concurrent workers.

How TimescaleDB compresses time-series data

roszigit.com · 15 Jun

Database · PostgreSQL · SQL

TimescaleDB utilizes the hypercore engine, a hybrid row-columnar storage system, to achieve up to 98% compression on time-series data.

By grouping rows into batches and using specialized algorithms like delta encoding, Gorilla XOR, and run-length encoding, it outperforms native PostgreSQL TOAST mechanisms for IoT and financial datasets while simultaneously improving analytical query performance.

your agent can think. it can't remember.

dev.to · 25 Mar

Artificial Intelligence · Database · PostgreSQL

Ghost provides instant, ephemeral Postgres databases for AI agents, enabling branching, forking, and isolation.

It integrates seamlessly with a suite of Postgres-native tools—Memory Engine, TigerFS, and Ox—to provide persistent memory, file storage, and sandboxed execution without requiring complex middleware. This infrastructure simplifies agent workflows by treating databases as disposable, version-controlled project resources.

I imported the full Linux kernel git history into pgit

oseifert.ch · 5 Apr

Git · PostgreSQL · SQL

The author successfully imported the entire 20-year history of the Linux kernel into pgit, storing 1.4 million commits in a PostgreSQL database using delta compression.

This setup enables rapid, complex SQL querying of the entire history, revealing deep technical insights, development trends, and contributor patterns that would be labor-intensive to produce using standard Git tools.

Good CTE, Bad CTE

boringsql.com · 29 Mar

Database · PostgreSQL · SQL

CTEs in PostgreSQL have evolved from 'optimization fences' into an efficient tool.

Since PostgreSQL 12, the planner automatically inlines most CTEs unless they are recursive, have side effects, or are referenced multiple times. While materialization can be useful for performance or atomicity, it often hides statistics from the query planner, occasionally leading to inefficient execution plans.

The way CTRL-C in Postgres CLI cancels queries is incredibly hack-y

neon.com · 20 Mar

Cybersecurity · Database · PostgreSQL

Postgres uses a separate, unencrypted connection for CancelRequest messages sent during query termination.

This creates security risks, including potential Denial-of-Service attacks via traffic interception. While Postgres 17 introduced TLS support for these requests, psql has not yet implemented them, highlighting the need for vigilance and secure configuration when managing database traffic and proxy tools.

I Replaced Redis with PostgreSQL (And It's Faster)

dev.to · 9 Jan

Database · PostgreSQL

This technical analysis explores the feasibility of consolidating a web application stack by replacing Redis with PostgreSQL.

The author details how common Redis features like caching, pub/sub, jobs, and sessions can be mapped to native PostgreSQL capabilities such as UNLOGGED tables, LISTEN/NOTIFY, SKIP LOCKED, and JSONB columns. While Redis offers superior raw performance and sub-millisecond latency for high-throughput scenarios, PostgreSQL provides significant advantages in operational simplicity, reduced costs, and transactional consistency. The article presents benchmarks showing that while PostgreSQL is slightly slower, the differences are often negligible for small to medium-sized applications. This transition allows teams to manage a single database, simplify backups, and ensure data integrity through ACID transactions, though Redis remains essential for extreme scale and specialized data structures.

How We Pushed CDC into Postgres

snowflake.com · 10 Aug

Data Science · Database · PostgreSQL

Snowflake has introduced 'data mirroring' for its Postgres service, a new feature providing resilient, low-lag, and transactional data replication into Snowflake.

By moving change data capture directly into Postgres using an extension, it pushes changes into Apache Iceberg tables. This push-based, transactional approach eliminates fragile external pipelines, simplifies infrastructure, and ensures consistent synchronization of schema and data.

Looking Forward to Postgres 19: It's About Time

pgedge.com · 12 Jun

Database · PostgreSQL · SQL

Postgres 19 introduces native support for temporal tables, implementing SQL:2011 standards.

Using the WITHOUT OVERLAPS clause and FOR PORTION OF syntax, developers can now manage valid-time periods efficiently. This native approach replaces complex workarounds like GiST index exclusion constraints, simplifies data integrity for overlapping ranges, and introduces support for temporal foreign keys, significantly improving how Postgres handles time-sensitive data.

Does Postgres Scale?

dbos.dev · 30 Apr

Database · Performance · PostgreSQL

This article benchmarks the scalability of PostgreSQL for durable workflow execution.

Experiments show a single instance can handle 144K writes or 43K workflows per second. Performance is primarily bottlenecked by Write-Ahead Log (WAL) flushing. Results confirm that PostgreSQL is highly capable of supporting massive-scale, write-intensive applications, provided queuing contention is managed.

Where it came fromHacker NewsLobstersDev.toPlanetScaleCreate a Snapbyte.dev digest and choose PostgreSQL as one of your topics.Build your digest