PostgreSQL: Weekly Recap - Shared Memory Architecture Overhaul

PostgreSQL underwent a major infrastructure modernization this week with 30 commits completely rewriting the shared memory allocation system. The changes introduce a new subsystem registry and convert all built-in components to use modern allocation APIs.

Duration: PT2M41S

Episode overview

This episode is a short developer briefing from PostgreSQL.

It explains recent repository work in plain language.

  • Show: PostgreSQL
  • Published: 2026-04-06T00:00:00Z
  • Audio duration: PT2M41S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Welcome to the PostgreSQL weekly recap for March 30th through April 6th, 2026.

Zero pull requests were merged this week, but 30 additional commits landed, all focused on a single major initiative.

**Infrastructure Changes**

This week saw a complete overhaul of PostgreSQL's shared memory allocation system, led by Heikki Linnakangas. The changes introduce a fundamentally new approach to how PostgreSQL manages shared memory across its subsystems.

The work began with introducing a new mechanism for registering shared memory areas, replacing the traditional ShmemSize and ShmemInit functions with a more ergonomic callback system. This new approach allows subsystems to specify memory requirements and names in a single ShmemRequestStruct call, simplifying both…

A registry of built-in shared memory subsystems was added through a new subsystemslist.h file. This registry automatically hooks up memory callbacks during postmaster startup, eliminating manual coordination code.

Nearby episodes from PostgreSQL

  1. Build Directory Path Fix
  2. String Formatting Fix
  3. Weekly Recap - Bug Fixes and Security Infrastructure
  4. Database Statistics and Array Coercion Fixes
  5. Performance Revolution - ARM Acceleration and Smart Index Scanning
  6. The Great Memory Makeover
  7. Speed Demons and Smart Optimizations
  8. Temporal Queries and Performance Wins