Planet PostgreSQL·· 15d agoFeatured
How PostgreSQL Continuously Tests Security Patches Before Disclosure
Andrew Dunstan: New Security Infrastructure for PostgreSQL
Brief · Based on the source excerpt
Since June 2026, PostgreSQL has managed pending security patches in the private pgsql-security Git repository and continuously built and tested them across all supported branches in a private buildfarm. Each branch has an ordered patch list and can reference patches shared with other branches.
Why It Matters
The workflow offers a practical way to move cross-platform builds and tests from release packaging day into routine development without disclosing security patches.
Technical Breakdown · Distilled from the original source
Testing under embargo
- Before release, security fixes cannot be posted to
pgsql-hackers, submitted to a public CommitFest, or pushed topostgresql.gitfor testing by the public buildfarm. - Under the old process, even carefully reviewed patches circulated among a small group or stayed in the bug tracker, often with separate versions for six or seven branches. Broad testing began only after the patches were pushed on wrap day, a few hours before the source tarballs were made. The private buildfarm moves testing across platforms, compilers, and configurations into the embargo period.
Patch stacks and work-in-progress branches
- The private
pgsql-securityrepository is accessible to the security team and committers working on security issues. It uses a Git quilt layout, with one directory per supported branch and aseriesfile specifying patch order. If a patch applies unchanged to another branch, that branch can reference it by relative path, such as../master/foo.patch, rather than keeping a copy. - Patches are generated with
git format-patchand carry the author, commit message, and backpatch information that will go intopostgresql.git. Fixes in progress can have their own branches until they are ready to join the patch stack.
Source: Planet PostgreSQL· postgr.es
PG Radar summarizes verified changes and impact. Read the original post for full technical details and code samples.