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.

7 stories

We're building Postgres in Rust. Using the LLVM of databases

turso.tech · 16 Jul

Database · PostgreSQL · Rust

Turso, a reliable Rust-based database engine, is evolving into the 'LLVM of databases.'

By decoupling the core engine from SQL frontends, it now aims to support Postgres alongside SQLite. This project leverages Turso's existing architecture to implement a modern, high-performance, and embeddable version of Postgres, welcoming community contributions to build the future of database technology.

How I Got Postgres into a Single Binary

progrium.xyz · 20 Nov

CLI · Database · PostgreSQL

miniPG packages a full Postgres server and client into a single cross-platform executable that works like sqlite3: point it at a directory, run SQL, and store database files without managing a daemon.

It can also serve Postgres or launch software with matching environment variables, supporting local apps, testing, development, and agents that need Postgres features. PGlite’s single-connection limit and a slower VM approach led to Hyper9, reducing startup from 7 seconds to 800ms. miniPG targets local, single-user use, not cloud deployments.

Introducing pgtui, a Postgres TUI client

kdwarn.net · 16 Mar

Database · PostgreSQL · Rust

The author developed pgtui, a Rust-based terminal user interface for Postgres, to simplify database interactions.

By leveraging TOML for data entry via terminal editors, the tool enables efficient browsing, filtering, and editing of records. Key features include multi-column primary key support, connection management, and seamless integration with sqlx and ratatui for robust performance.

Video Conferencing with Postgres

planetscale.com · 9 Mar

Database · Distributed Systems · PostgreSQL

Developer Nick Van Wiggeren demonstrated a proof-of-concept video conferencing system using PostgreSQL.

The project utilizes a SvelteKit frontend and a Node.js relay to store JPEG frames and PCM audio as binary data. By leveraging PostgreSQL logical replication, the system achieves real-time bidirectional 15fps video streaming without traditional polling or WebRTC.

PREEMPT_NONE Is Dead; Your Postgres Probably Doesn’t Care

thebuild.com · 6 Jul

Database · Linux · PostgreSQL

Concerns regarding a throughput drop in PostgreSQL on Linux 7.0 were triggered by a misconfigured benchmark that lacked huge_pages enabled on high-memory systems.

The removal of PREEMPT_NONE exposed existing inefficiencies in page-fault handling within spinlocks. Modern systems should enable huge_pages to maintain performance and avoid these issues; the kernel upgrade itself is not a concern for properly configured deployments.

The Internals of PostgreSQL

interdb.jp · 7 Mar

Database · PostgreSQL · SQL

The Internals of PostgreSQL is a comprehensive guide by Hironobu SUZUKI detailing the architecture and subsystems of the PostgreSQL relational database.

On its 10th anniversary, it covers version 18, including query processing, concurrency control, and replication. This resource provides technical depth for administrators and developers to understand the inner workings of this open-source system.

The hidden cost of PostgreSQL arrays

boringsql.com · 12 Jan

Database · Performance · PostgreSQL

PostgreSQL arrays offer a convenient way to store lists directly within rows, effectively implementing a document-storage model within a relational system.

While they simplify application mapping and eliminate some joins, they introduce complexities regarding referential integrity, memory management, and performance. This deep-dive explores nuances such as non-standard array bounds, the lack of dimension enforcement in schemas, and the critical performance differences between GIN and B-tree indexing. Additionally, it highlights the storage repercussions of the TOAST mechanism, where modifying single elements in large arrays can trigger expensive rewrite cycles, and suggests modern alternatives like LZ4 compression or specialized extensions like intarray and pgvector for optimized performance.

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