Category: postgresql

PostgreSQL on this site is the main hub for everything related to designing, running, and improving modern Postgres databases. It brings together practical guidance on performance tuning, real‑world architecture patterns, learning resources, and hands‑on examples so developers and DBAs can get more out of PostgreSQL in production. From book recommendations and beginner tutorials to deep dives into scaling, extensions, and advanced features, this category is where readers go to level up every aspect of their Postgres stack.

Performance and tuning

Postgres VACUUM Tuning: Stop Table Bloat from Slowing Queries

Dead tuples are invisible—until they aren’t. On write-heavy workloads—order and status tables, event streams, telemetry from Houston’s energy corridor—every UPDATE and DELETE leaves an old row version behind. PostgreSQL’s MVCC design is why readers never block writers, but the tradeoff is that stale row versions accumulate until autovacuum sweeps them away. When autovacuum falls behind, […]

David Sterling 
AI Features and extensions pgvector

pgvector Guide: Setup, Indexes, and Query Examples

Embeddings search is no longer a novelty feature; it is table stakes for Postgres teams building RAG pipelines, semantic search, and recommendation engines. pgvector, the open-source extension that adds vector columns and nearest-neighbor search to PostgreSQL, is where most of those teams start. The current v0.8.x line supports Postgres 13 and later, with single-precision, half-precision, […]

David Sterling 
AI Features and extensions pgvector

pgvector vs pgvectorscale: Which Postgres Vector Extension?

Vector search used to mean bolting a separate database onto your stack. Two open-source PostgreSQL extensions have changed that: pgvector and pgvectorscale. Both are free, both run inside Postgres, and both have shipped meaningful upgrades in the past year — pgvector is at v0.8.6 with iterative index scans and half-precision vectors, while pgvectorscale 0.9.0 added […]

David Sterling 
Architecture and operations

How OpenAI Scales PostgreSQL: 5 Ops Lessons

OpenAI’s engineering team recently published “Scaling PostgreSQL to power 800 million ChatGPT users” — a detailed account of how ChatGPT’s primary data store survives traffic that would flatten most databases. The headline: it’s one PostgreSQL primary handling every write, roughly 50 read replicas, and a stack of operational habits that keep the write path alive. […]

David Sterling 
Performance and tuning postgresql

Postgres Connection Pooling: Lessons from OpenAI

OpenAI’s engineers recently shared how PostgreSQL sits at the core of ChatGPT’s infrastructure, serving 800 million users. You do not need ChatGPT-scale traffic for the lesson to apply. In Houston, the same failure pattern shows up in energy trading dashboards, medical claims pipelines, and logistics telematics fleets: the database slows down under load long before […]

David Sterling