Neues vom PostgreSQL Planet

Neues vom PostgreSQL Planet Feed abonnieren
Planet PostgreSQL
Aktualisiert: vor 7 Minuten 59 Sekunden

Jianghua yang: One tree, two major versions: adapting pg_orca to PostgreSQL 19

27. November 2026 - 1:00
How pg_orca added PostgreSQL 19.0 support in 13 #if guards across 6 files — without forking a branch — plus native SQL:2003 IGNORE NULLS support and the real optimizer bugs uncovered by PG 19's regression suite.

Radim Marek: ANALYZE on a mostly-NULL column

26. November 2026 - 22:00

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 six days in November:

Cornelia Biacsics: Contributions for week 46

26. November 2026 - 13:12

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:

Christophe Pettus: All Your GUCs in a Row: search_path

26. November 2026 - 3:00
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..)

Jan Kristof Nidzwetzki: Barriers, Volatile, and Atomics: How PostgreSQL Orders Memory Accesses

26. November 2026 - 1:00

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 reorder memory accesses in a way that would break the correctness of the code. Closely related are volatile variables and atomic operations, which you will find in the source code as well.

Umair Shahid: Where 39% of the WAL Came From

25. November 2026 - 17:32

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 come from the application, the platform or the workload. It came from a five-minute checkpoint default.

DARIA NIKOLAENKO: PostgreSQL DDL/DML Migration Checklist for the Anxious

25. November 2026 - 16:27

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, replication lag, unexpected load, or even downtime.

Of course, no checklist can guarantee a trouble-free migration. However, asking the right questions beforehand can significantly reduce the risk.

Ismaël Mejía: PostgreSQL 19 is now supported in pglayers

25. November 2026 - 13:42

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, PostGIS, pg_cron, pg_textsearch, or pg_lake, you can get started without compiling extensions yourself.

Peter Eisentraut: PgBouncer visits the CNCF Security Slam

25. November 2026 - 6:00

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.

Hollis Varden: Hash joins, planner statistics and index upkeep on PostgreSQL 18

25. November 2026 - 1:00

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, shared_buffers 128MB, maintenance_work_mem 64MB, 2 parallel workers per gather, 2 parallel maintenance workers). The database collation is C. MacBook Air M5, 10 cores, 24 GB RAM, internal SSD. Same machine as my previous posts.

Hollis Varden: Eleven small measurements on PostgreSQL 18: joins, casts, TOAST and types

25. November 2026 - 1:00

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 gather). The database collation is C. MacBook Air M5, 10 cores, 24 GB RAM, internal SSD. Same machine as my previous post.

Jobin Augustine: Pre-Calculating HugePages for PostgreSQL

24. November 2026 - 10:42
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 also came across reports of up to 30% performance gain as an added benefit, but only for very specific workloads.

Aleksei Aleinikov: PostgreSQL VACUUM & Bloat: Dead Tuples, HOT Updates & Compaction

24. November 2026 - 9:00

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.

Hubert 'depesz' Lubaczewski: Missed in PostgreSQL 19 : Support multi-line headers in COPY FROM command.

24. November 2026 - 8:47
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 input contains multi-line headers that should be ignored during data import.   Author: … Continue reading "Missed in PostgreSQL 19 : Support multi-line headers in COPY FROM command."

Laurenz Albe: How to deal with slow shutdown in PostgreSQL

24. November 2026 - 5:00


© Laurenz Albe 2025

If you have to restart the PostgreSQL server, you often want to keep the down time as short as possible. Starting the server is usually fast, but shutdown can be slow. In this article I describe why there can be a slow shutdown and what you can do to speed it up.

Zsolt Parragi: The numbers of Postgres 19

24. November 2026 - 1:00

After talking about the reverts and then the remaining features of PostgreSQL 19, I want to talk about another important aspect: the statistics of the development cycle.

Mayur B.: PostgreSQL 19: When the Planner Needs Adult Supervision

23. November 2026 - 19:09

A few years ago, I wrote about an innocent-looking microservices pattern that could make PostgreSQL performance unexpectedly dramatic. Not because the SQL changed. Not because someone dropped an index. The data changed, the statistics told an outdated story, and the planner made a perfectly rational decision based on fiction.
Back then, pg_hint_plan was one possible escape hatch. PostgreSQL 19 introduces two supplied tools, pg_plan_advice and pg_stash_advice. Time to revisit our old friend: the transactional outbox.

Stefan Fercot: When did I start contributing to pgBackRest, exactly?

23. November 2026 - 10:00

In October, I was in the audience at PGConf.EU for “The Monday We Learned Who Maintains Our Backups”, by David Steele and Jan Wieremjewicz. I was happy to hear how pgBackRest was born, straight from the person who wrote it.

One slide listed the project’s founding major contributors: David, Cynthia Shang, Stephen Frost, and Reid Thompson. The next slide added “Next:” above my own name.

Nikolay Samokhvalov: PGAIBench and AAA: can AI safely change production Postgres?

23. November 2026 - 2:00
Across 949 live Postgres 18.7 runs (10 models), 13 of 408 scored primary changes caused harm. Replaying them through AAA would have blocked 12 of 13 while approving 377 of 378 safe or unclassified changes.

Chris van Eijk: could not resize shared memory segment: Postgres in Docker

23. November 2026 - 1:00
PostgreSQL could not resize shared memory segment: No space left on device is /dev/shm, not disk. Measured in Docker on 16 to 18; why 256 MB fell short.

Seiten