In this article
Concurrent pg_control writes could produce inconsistent base-backup control data; 18.7 repairs the copy path, whose validity needs a restore-oriented check.
PostgreSQL 18.7 fixes a base-backup race when pg_control is written concurrently with copying. The result could contain inconsistent control data even if the backup transfer itself completed. This is a file-coherence boundary: successfully reading all bytes does not prove they came from one valid file state. The release includes both the main repair and a platform-related follow-up, so qualification should use the patched implementation on the intended system.
File completeness is weaker than file coherence
The release describes a potentially torn copy, not simply a missing control file. File existence and expected length can therefore pass while content is inconsistent. A proposed regression check overlaps control-file activity with backup and validates the captured result through the appropriate PostgreSQL checks. Merely comparing byte counts would miss the failure mode. The important invariant is a valid control-file state, not an assumption that every successful read is an atomic snapshot.
Backup completion does not replace recovery testing
An isolated restore exercise can establish that the produced backup is usable under the intended recovery procedure. It should retain startup diagnostics rather than classify every received archive as valid. This is a proposed qualification step, not a claim that the release provides a universal corruption detector. A passing restore is useful evidence about that artifact; it does not retrospectively validate all earlier backups taken by the same server or tool version.
Platform behavior belongs in copy qualification
The release entry links more than one upstream change, including a follow-up relevant to the copying mechanism. A review should use the final patched branch rather than reproduce only the first commit in isolation. Test the filesystem and operating environment used for backup production. The notes do not establish identical low-level behavior on every platform, so a local result should preserve its environment instead of being presented as a platform-independent performance or reliability measurement.
Keep control data separate from other backup files
The same release fixes other base-backup races, but a correct pg_control copy does not prove those paths are sound. Inventory the artifact and validation performed rather than using one successful check as a blanket certificate. This repair specifically protects consistency while copying a concurrently written control file. Other configuration files, relation pages, checksums and incremental history each have separate contracts, so a complete backup qualification should preserve their distinct results.
Sources
- PostgreSQL 18.7 release notes
- PostgreSQL upstream change 8cddd5fc8
- PostgreSQL upstream change 4f857f399
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.