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 Internals of PostgreSQL

interdb.jp · 3 Nov

Database · PostgreSQL

The Internals of PostgreSQL explains PostgreSQL’s integrated subsystems, from process and memory architecture, query processing, concurrency control, VACUUM, and the buffer manager to WAL, backup, PITR, streaming replication, and beta logical replication.

Hironobu SUZUKI launched the documentation in 2015; it now covers PostgreSQL 19-beta and earlier, with recent additions on asynchronous I/O and logical replication. SUZUKI is seeking international or remote PostgreSQL opportunities with visa sponsorship or digital-nomad support.

Databases in 2025

cs.cmu.edu · 4 Jan

Database · PostgreSQL · News

In this extensive review of the database industry in 2025, the author highlights the continued dominance of PostgreSQL, noting its version 18 release and significant acquisitions by Databricks (Neon) and Snowflake (CrunchyData).

The emergence of distributed PostgreSQL projects like Multigres and Neki is discussed alongside the industry-wide adoption of Anthropic's Model Context Protocol (MCP) for LLM integration. The report covers the legal battle between MongoDB and FerretDB, the evolution of open-source file formats like Vortex and F3, and a wave of private equity acquisitions involving companies such as DataStax and SingleStore. Finally, it reflects on Larry Ellison's ascent to become the world's wealthiest individual, driven by Oracle's success in the AI era.

Learn SQL Once, Use It for 30 Years

fagnerbrack.com · 31 May

Database · PostgreSQL · SQL

SQL is a uniquely durable programming language based on relational algebra, allowing queries written decades ago to function in modern systems like PostgreSQL.

Unlike fast-evolving frameworks such as JavaScript, SQL offers career longevity through its mathematical foundation. While it has legacy flaws, mastering core SQL remains the most valuable long-term investment for software developers.

Why we built yet another Postgres connection pooler

pgdog.dev · 6 Jul

Database · PostgreSQL · Rust

PgDog is a modern Postgres connection pooler designed to eliminate leaky abstractions associated with tools like PgBouncer.

By utilizing a built-in SQL parser, it maintains session state for SET commands and provides full support for LISTEN/NOTIFY. Built with Rust and Tokio, it offers multithreaded performance and simplified infrastructure management compared to traditional sharding methods.

Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems

diljitpr.net · 25 Dec

Distributed Systems · PostgreSQL · Software Architecture

In this technical analysis, the author describes a resilient system architecture designed for Wayfair to handle business report generation via Kafka event streams.

Faced with typical distributed systems failures such as downstream API downtime and malformed data, the team transitioned from using Kafka-based Dead Letter Queues (DLQ) to a PostgreSQL-based solution. The move to CloudSQL allowed for superior visibility, enabling engineers to query failures using SQL and manage event lifecycles via simple status fields. By implementing selective indexing, JSONB storage, and a retry mechanism using ShedLock and the FOR UPDATE SKIP LOCKED clause, they established a robust, concurrent, and auditable recovery path that avoids retry storms. The result is a highly observable and predictable failure-handling strategy that leverages the strengths of both streaming and relational database technologies.

Sqldef: Idempotent schema management tool for MySQL, PostgreSQL, SQLite

sqldef.github.io · 1 Feb

Database · PostgreSQL · SQL

sqldef is an innovative command-line interface tool designed to streamline database schema management by performing diff operations between two SQL schemas.

Unlike traditional migration tools that require managing stateful migration files, sqldef allows developers to update their relational database management systems by comparing a desired SQL schema with the current live state. The tool provides robust support for a wide range of popular databases, including MySQL, MariaDB, TiDB, PostgreSQL, SQL Server, and SQLite3. By generating the necessary DDL statements to reconcile differences, it simplifies the Continuous Integration and deployment lifecycle for backend developers. Additionally, an online demo environment utilizes a WebAssembly build of sqldef, enabling users to experiment with schema comparisons and DDL generation directly within a web browser without local installation.

The challenges of soft delete

atlas9.dev · 19 Jan

Database · PostgreSQL · Software Architecture

This article discusses the pitfalls of using an archived_at column for soft deletes, such as increased database complexity and bloated tables.

It explores superior alternatives like application-level event emission, PostgreSQL triggers for archiving rows to JSON tables, and WAL-based Change Data Capture (CDC). The author specifically recommends the trigger-based approach for new projects due to its simplicity and ability to keep live data clean.

We scaled PgBouncer to 4x throughput

clickhouse.com · 11 Jul

Performance · PostgreSQL · Software Architecture

PgBouncer is single-threaded, limiting throughput on multi-core systems.

By running a fleet of processes using so_reuseport and implementing process peering for query cancellation, developers can utilize all available CPU cores. This architecture significantly improves performance and scalability, ensuring connection pooling does not become a bottleneck for Managed Postgres databases.

What Is a Database Transaction?

planetscale.com · 22 Feb

Database · PostgreSQL · SQL

This article explores database transactions, explaining atomicity through BEGIN, COMMIT, and ROLLBACK.

It compares Postgres's multi-versioning (MVCC) and VACUUM processes against MySQL's undo logs. Additionally, it details isolation levels—Serializable, Repeatable Read, Read Committed, and Read Uncommitted—and how both systems handle concurrent writes using locking or optimistic serialization.

Looking Forward to Postgres 19: Query Hints

pgedge.com · 5 Jun

Database · PostgreSQL · SQL

Postgres 19 introduces 'plan advice' through two new modules, pg_plan_advice and pg_stash_advice, effectively adding query hints.

Unlike traditional implementations, these keep advice outside SQL, guide rather than replace the planner, and provide granular feedback. This design addresses long-term community concerns regarding maintenance and the importance of allowing DBAs a graceful escape hatch for problematic queries.

What Changes When You Upgrade from PostgreSQL 18 to 19

rishigoomar.com · 26 Nov

Backend · Database · Performance · PostgreSQL · SQL

PostgreSQL 19 brings measurable day-to-day improvements over 18: foreign-key batch inserts were 41.1% faster, and eligible NOT IN queries were 24.5% faster in tests.

Native REPACK CONCURRENTLY reclaims space online, pg_plan_advice exposes and tests planner choices, and ON CONFLICT DO SELECT returns existing rows in one round-trip. WAIT FOR LSN helps replicas catch up before reads. Upgrade checks include extensions, removed io_workers, disabled-by-default JIT, lock settings, and logical-replication sequence synchronization.

How we migrate TBs from Heroku without logical replication

planetscale.com · 11 Nov

Backend · Database · DevOps · PostgreSQL

PlanetScale built the open-source Heroku Migrator to move standard Heroku Postgres databases with minimal downtime despite lacking logical replication.

Using Bucardo trigger-based replication, it copies the schema and data, tracks changes, verifies consistency, and enables a controlled cutover. The latest version uses staged index rebuilding, connection keepalives, and txntime indexes to prevent restarts, network stalls, and replication backlogs, increasing copy speed from roughly 60 to 300 GB/h. It also supports Postgres 18 and pg_partman.

What was the turning point for Postgres?

planetscale.com · 27 Oct

Backend · Database · PostgreSQL · History

Postgres became today’s default through a sequence of moments rather than one decisive event, with Heroku’s 2011 decision to make hosted Postgres effortless arguably the pivotal catalyst.

Its open governance and extensibility ensured survival; JSONB preserved relevance against MongoDB, while MySQL’s Oracle acquisition weakened its momentum. Postgres overtook MySQL in Stack Overflow’s 2023 survey (45.6% vs. 41.1%) and reached 86% of 32,955 LLM database recommendations, reinforced by cloud availability and pgvector.

What gets TOASTed in Postgres

planetscale.com · 12 Oct

Backend · Database · Performance · PostgreSQL

Postgres TOAST activates when a row exceeds 2,032 bytes: it compresses variable-length values or moves them into a `pg_toast` table in chunks.

A 2,001-character `text` value therefore compresses with LZ4 while 2,000 characters remain uncompressed. Postgres 19 makes LZ4 the default where supported. LZ4 is generally the best choice for speed, while pglz can produce smaller repetitive JSON and better preview reads; `EXTERNAL` suits already-compressed data and random byte-range access.

TIN v1.0.6: 2-3x faster, with support for stemming

planetscale.com · 8 Oct

Backend · Database · Performance · PostgreSQL

TIN v1.0.6 adds language-specific stemming for 18 languages, supports heap-attribute tiebreakers in ranked top-k queries, and improves top-k performance without changing the index format.

Benchmarks on 150 million Stack Exchange documents show TIN outperforming ParadeDB across conjunction, disjunction, phrase, and mixed queries: default scoring delivers 3.1–5.0x higher throughput and 2.7–4.4x lower p99 latency on x86-64. Existing indexes need no rebuild for the performance update; stemming requires rebuilding.

Show HN: Mason – A lightweight Postgres read-replica, built on columnar storage

masondata.ai · 24 Nov

Backend · Database · JavaScript · Performance · PostgreSQL

Mason is an open-source, lightweight Postgres read replica that syncs selected tables and columns into DuckDB’s columnar engine while preserving Postgres SQL behavior.

A single Node.js process supports on-demand, polling, or logical-replication sync and rewrites queries for analytical workloads. Benchmarks show up to 467× faster count queries and 50× faster joins, while primary-key lookups are 2.8–6× slower. Mason also provides RBAC, row-level security, generated tables, monitoring, and MCP support for AI agents.

Do we still have to denormalize? Have your schema and search it too

paradedb.com · 13 Nov

Backend · Database · Performance · PostgreSQL · Software Architecture

ParadeDB enables fast search joins over normalized Postgres schemas, removing much of the need to denormalize into Elasticsearch.

In a StackOverflow benchmark, its columnar indexes and DataFusion executor use Rank Join, selective late materialization, tuple tagging, and index co-partitioning. They reduce a natural three-table Top-K query from about 118,000 ms in vanilla Postgres to 100–600 ms, and a facet aggregate from 35.3 seconds to 422 ms, while retaining transactional consistency and standard SQL.

Postgres transactions are a distributed systems superpower

dbos.dev · 2 Jul

Database · PostgreSQL · SQL

Co-locating workflow state within the same Postgres database as application data enables atomic updates.

By bundling database changes and workflow checkpoints into single transactions, developers can guarantee exactly-once execution and simplify complex patterns like idempotency and outbox messaging, ultimately enhancing reliability and reducing the overhead typically found in distributed workflow systems.

Looking Ahead to Postgres 19

snowflake.com · 30 Jun

Database · PostgreSQL · SQL

Postgres 19, currently in beta, introduces significant improvements including native REPACK CONCURRENTLY, partition merging and splitting, and enhanced logical replication.

New features like SQL property graph queries and SQL syntax upgrades improve developer productivity, while autovacuum and planner enhancements boost database maintenance and performance. These updates strengthen Postgres as a versatile and manageable production-ready system.

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