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

British Columbia, Time Zones, and Postgres

crunchydata.com · 22 Jun

Backend · Database · PostgreSQL

British Columbia's shift to permanent Pacific Daylight Savings Time highlights risks in storing future appointments as UTC-based timestamptz in Postgres.

Because timezone rules change, relying solely on UTC can result in incorrect local times. The author recommends a dual-column pattern—storing local wall-clock time and the timezone name separately—to preserve user intent for future events.

Optimizing Top K in Postgres

paradedb.com · 8 Mar

Database · Performance · PostgreSQL

Postgres faces performance challenges with Top K queries when combining filters and text search, often requiring multiple expensive indexes or heap scans.

ParadeDB addresses this by using Tantivy-based compound indexes and columnar storage, enabling efficient filtering and early pruning via Block WAND for significantly faster query execution.

WAL-RUS: a Rust Rewrite of WAL-G for PostgreSQL Backups

clickhouse.com · 25 Jun

Database · PostgreSQL · Rust

ClickHouse Cloud developed WAL-RUS, an open-source Rust tool for PostgreSQL backups and WAL archiving.

Designed to address the memory unpredictability of garbage-collected runtimes like Go, it provides a stable, resource-efficient alternative to WAL-G while maintaining full compatibility with its archives and configuration, ensuring reliable and predictable performance for resource-constrained environments.

Pg_tracing: Distributed Tracing for PostgreSQL

github.com · 29 Jan

Database · Observability · PostgreSQL

pg_tracing is a PostgreSQL extension by DataDog designed for server-side distributed tracing.

Currently supporting versions 14, 15, and 16, it generates detailed spans for various internal events, including query planning, execution, triggers, parallel workers, and transaction commits. The extension integrates with the OpenTelemetry (OTLP) ecosystem and supports trace context propagation via SQLCommenter or GUC parameters. Users can consume spans as records or JSON, and even automate export to an OTLP collector. While powerful, the extension is in early development and requires shared memory allocation and shared_preload_libraries configuration.

Postgres Postmaster does not scale

recall.ai · 4 Feb

Database · Distributed Systems · PostgreSQL

Recall.ai, a platform for recording and processing millions of virtual meetings, encountered a rare scaling bottleneck within PostgreSQL.

Due to the highly synchronized nature of meetings starting on the hour, their EC2 infrastructure faced extreme traffic bursts, leading to connection delays of up to 15 seconds. Investigation revealed that the PostgreSQL postmaster process operates on a single-threaded main loop responsible for spawning and reaping backends. During high connection churn or heavy background worker activity, this loop saturates a single CPU core, delaying new connections. The team mitigated this by enabling Linux huge pages to reduce 'fork' overhead, introducing jitter to stagger EC2 connection times, and limited parallel query bursts. The findings highlight that the primary bottleneck in PostgreSQL scaling is often the single-threaded nature of the postmaster rather than general resource availability.

Linux 7.0 Broke PostgreSQL: The Preemption Regression Explained

read.thecoder.cafe · 29 Apr

Linux · Performance · PostgreSQL

Linux 7.0 shifted to PREEMPT_LAZY, causing a significant performance regression in PostgreSQL on high-vCPU systems.

Minor page faults occurring while holding a spinlock lead to excessive preemption, stalling concurrent processes. Administrators can mitigate this by enabling Huge Pages to reduce page fault frequency and minimize TLB overhead, restoring expected performance levels.

Lakebase architecture delivers faster Postgres writes

databricks.com · 7 May

Cloud Computing · Database · PostgreSQL

The authors explain how decoupling compute and storage in managed Postgres, specifically through a 'lakebase' architecture, allows for offloading Full Page Writes (FPW).

By moving image generation to the storage layer, they eliminated a major performance bottleneck, resulting in 5x higher write throughput, 50% lower read latency, and 94% less WAL traffic without requiring restarts.

PgQue: Zero-Bloat Postgres Queue

github.com · 13 Apr

Database · PostgreSQL · SQL

PgQue is a zero-bloat, SQL-first event queue for PostgreSQL 14+.

By using snapshot-based batching and TRUNCATE-based rotation instead of row-level deletions, it avoids index bloat and VACUUM pressure. It supports event-driven fan-out, works on managed providers without extensions or sidecars, and offers an ACID-compliant alternative to traditional task queues like RabbitMQ.

Massively Parallel Postgres Backups

planetscale.com · 31 Jul

Database · MySQL · PostgreSQL

PlanetScale optimizes database backups for sharded Postgres and MySQL environments using massive parallelism.

By spinning up temporary nodes per shard to restore backups from object storage and replaying WAL or binary logs, they achieve high-speed, consistent backups with minimal production impact. This infrastructure supports scaling, resizing, and rapid node replacement for petabyte-scale databases.

Making Postgres queues scale

dbos.dev · 30 Jul

Database · PostgreSQL · SQL

Conventional wisdom suggests Postgres cannot scale as a queue, but with optimizations, it can reach 30K executions per second.

Key strategies include using SKIP LOCKED to reduce contention, adjusting transaction isolation levels to avoid serialization failures, and creating selective, partial indexes to minimize CPU overhead and autovacuum impact.

PostgresBench: A Reproducible Benchmark for Postgres Services

clickhouse.com · 20 Jun

Database · Performance · PostgreSQL

ClickHouse has launched PostgresBench, an open-source, reproducible benchmark designed to evaluate the performance of managed PostgreSQL services.

Using pgbench with standardized transactional workloads, the project aims to provide transparent metrics, including TPS and latency, across various cloud providers like AWS RDS, Aurora, Neon, and Crunchy Bridge to ensure fair database infrastructure comparisons.

Show HN: Tusk for macOS and Gnome

shapemachine.xyz · 4 Apr

Database · PostgreSQL · SQL

This comparison table details the feature differences between two database management tools for PostgreSQL.

It covers key functional areas including connection management, schema browsing, table inspection, data management, SQL editing, and file exploration, highlighting specific capabilities unique to each application's implementation.

O que são essas letrinhas: ACID

dev.to · 17 Jul

Database · PostgreSQL · SQL

ACID—Atomicity, Consistency, Isolation, and Durability—is a foundational set of properties for database transactions.

These paradigms ensure data integrity and reliability, especially in sensitive contexts like finance. By utilizing examples in PostgreSQL, this analysis demonstrates how ACID principles maintain system consistency, prevent partial updates, manage concurrent operations, and ensure persistent data despite failures.

My PostgreSQL database got nuked lol

akselmo.dev · 11 Mar

Cybersecurity · Database · PostgreSQL

A developer shares a cautionary tale about losing their PostgreSQL database twice due to exploitable configurations.

The root causes were weak default credentials and Docker modifying host firewall rules to expose the database port publicly. The incident highlights the importance of securing docker-compose ports, using strong passwords, and properly configuring UFW on a VPS.

Git in Postgres

nesbitt.io · 26 Feb

Database · PostgreSQL · SQL

Gitgres is an experimental system that uses PostgreSQL as a storage backend for Git repositories via libgit2.

By treating Git objects and refs as database rows, it simplifies DevOps by unifying application data and repository storage, enabling complex SQL queries across code and metadata while streamlining backups and scalability.

Your "Read Later" list is a graveyard. It is time to stop hoarding.

dev.to · 11 Feb

Entrepreneurship · PostgreSQL · Productivity

The author introduces Sigilla, a privacy-first reading companion designed to combat the 'Collector's Fallacy'—the mistaken belief that saving content equals learning.

Unlike hoarding tools like Instapaper, Sigilla uses Spaced Repetition and forced engagement to ensure users actually read or discard saved articles. Built with React and PostgreSQL, it prioritizes user privacy and deep learning over distraction.

All you need is PostgreSQL

ebellani.github.io · 25 Jun

Database · PostgreSQL · SQL

Eduardo Bellani argues that many engineering problems, often solved with complex distributed systems, can be effectively handled using vanilla PostgreSQL.

By leveraging features like temporal tables, updatable views, and rigorous constraint triggers, teams can maintain data integrity, enforce business rules, and ensure high performance without unnecessary infrastructure complexity or architectural overhead.

PostgreSQL 18 RETURNING Enhancements: A Game Changer for Modern Applications

pgedge.com · 6 Jan

Backend · Database · PostgreSQL

PostgreSQL 18 introduces significant enhancements to the RETURNING clause, most notably the addition of OLD and NEW aliases for DML operations.

These improvements allow developers to capture both the pre-modification and post-modification states of data within a single atomic statement, including INSERT, UPDATE, DELETE, and the recently refined MERGE operations. This capability eliminates the need for redundant SELECT queries or complex trigger functions to track data changes, thereby reducing database round trips and streamlining application architecture. The update is particularly impactful for synchronization tasks and building comprehensive audit trails. By providing explicit access to previous and current values, PostgreSQL 18 simplifies conditional logic and enhances data tracking performance, reinforcing its status as a highly advanced open-source database for modern application requirements.

pgBackRest will continue

pgbackrest.org · 18 May

Database · PostgreSQL · Open Source

pgBackRest has secured long-term funding through a new coalition of corporate sponsors, including Amazon Web Services, Supabase, pgEdge, Tiger Data, Percona, and Eon.io.

This multi-sponsor model ensures project stability and sustainability for disaster recovery in the PostgreSQL ecosystem, enabling upcoming feature development and optimizations.

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