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.
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.
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.
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 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.
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 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.
Show HN: Streambed – Stream Postgres to Iceberg on S3, Supports Postgres Wire
Database · PostgreSQL · SQL
Streambed is a CDC engine that synchronizes PostgreSQL WAL changes to S3 as Iceberg tables.
It enables analytical querying without ETL or Spark by using a built-in query server based on DuckDB, which supports the PostgreSQL wire protocol for seamless connectivity.
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 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.
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.
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.
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.
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.
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.
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.
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.
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.
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 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 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.