A morning well spent nurturing the Talk Solicitation Program A morning well spent nurturing the Talk Solicitation Program At PGConf.dev, we have started the Talk Solicitation Program (TSP) with a simple idea. As conference attendees, we all have…
PostgreSQL divides large tables into 1GB segment files, but the server has no authoritative record of how many segments exist. (I consult on PostgreSQL through PGX Inc..)
In Galène: fixing double-encoded port files I described how FreshPorts had been storing UTF-8 port files double-encoded, so that www/galene's Makefile showed Galène instead of Galène. That post covered the fix, how I planned to test it, and how I…
One of the production databases I snapshot with dryrun has a 172 GB table that autovacuum analyzes about three times a day. dryrun keeps the planner statistics from every snapshot, so I could line up what pg_stats said about one of its columns over…
PGConf.Asia 2026 happened from 17-18 November 2026, organized by Grant Zhou Joanne Huang Bruce Momjian Hari Kiran Julyanto Sutandang Gavin Lyu Tatsuro Yamada Ioseph Kim Mark Wong Ashish Mehra Guohua Bai Henry Law Speakers: Agnafan Fortin Ajit Gadge…
PL/pgSQL functions inherit their caller's search_path, but autovacuum, pg_restore, and logical replication see an empty one—a silent recipe for index… (I consult on PostgreSQL through PGX Inc..)
In the PostgreSQL source code, you will find memory and compiler barriers in various places like pg_memory_barrier(), pg_write_barrier(), pg_read_barrier(), or pg_compiler_barrier(). These macros are needed to ensure that the compiler and CPU do not…
Introduction In this article, I’m going to show you how to map the PostgreSQL vector column type from pgvector to a JPA entity attribute using Hypersistence Utils, and how to use it with Spring AI and Ollama to implement semantic search,…
A fast-growing AI-native SaaS team we worked with alongside Supabase was writing 1.8 TB of WAL a day. That number alone made the database look like the ceiling. When we broke it down, about 39% of that WAL was full-page-image overhead. It didn’t…
Every now and then, a PostgreSQL database needs changes: adding a column, creating an index, updating data, or modifying constraints. Changes like these are called migrations. They can finish in seconds and go unnoticed, or lead to blocking,…
PostgreSQL 19 support is now available in pglayers, with 62 extension layers, ready-to-use Full and Azure profile images, and builds for both amd64 and arm64. The images use the official postgres:19 GA image. If you want PostgreSQL 19 with pgvector,…
Last month, PgBouncer participated in the Fall 2026 CNCF Security Slam. This is a report of what we did, what we learned, and what we plan for the future. Introduction First, let’s introduce the participants. PgBouncer is a connection pooler for…
Another sitting of small measurements. Two of them changed how I write queries. The rest mostly confirmed things I had only read. Setup PostgreSQL 18.6, built from source, default settings (work_mem 4MB, shared_buffers 128MB, 2 parallel workers per…
A second sitting of small measurements this week, mostly about what the planner believes and what indexes cost to keep. One result went the opposite way from what I expected. Setup PostgreSQL 18.6, built from source, default settings (work_mem 4MB,…
Pre-Calculating HugePages for PostgreSQL Huge pages (HugeTLB) are one of the most important PostgreSQL tuning steps, and they must be right before the server starts. They matter mainly for stability and reliability, more than for speed. Recently I…
Every PostgreSQL team eventually runs a massive DELETE to free up disk space, watches df -h stay completely flat, and wonders if the command even worked. Worse, queries against the smaller table often get slower instead of faster. This is Part 2 of…
On 3rd of July 2025, Fujii Masao committed patch: Support multi-line headers in COPY FROM command. The COPY FROM command now accepts a non-negative integer for the HEADER option, allowing multiple header lines to be skipped. This is useful when the…