In this article
Parallel pg_dump on a standby exercises recovery-snapshot import; 18.7 fixes a path that could damage both the dump and the standby itself.
PostgreSQL 18.7 fixes export and import of snapshots taken during recovery. Their layout differs from ordinary snapshots, and the old logic could produce wrong results and incorrectly set hint bits. The release identifies parallel pg_dump on a standby as a known trigger that could corrupt both dump output and standby data. A read-oriented backup operation therefore cannot be assumed harmless to the standby merely because it does not issue application writes.
Recovery snapshots have a different representation
The upstream change addresses data-layout assumptions in snapshot export and import. A proposed test must take the source snapshot during recovery and use the import path, not merely run a serial query against a standby. Testing on a primary would exercise a different snapshot form. Record the server role and snapshot-sharing behavior so a successful backup is evidence about this exact compatibility boundary rather than a superficially similar read workload.
Backup validity needs content verification
A successful pg_dump exit does not establish correct query results within every worker’s imported snapshot. A qualification plan can restore the output into an isolated database and compare a controlled dataset with its expected snapshot state. Preserve row identities and relationships rather than only archive readability. The release does not say that every earlier standby dump is corrupt, so historical review should distinguish exposure to the trigger from demonstrated damage.
The standby is also within the risk boundary
The notes explicitly mention persistent corruption from incorrect hint bits, not just a flawed exported file. Operational assessment should therefore consider the standby’s state as well as the dump artifact. Treating the operation as purely read-only would overlook that server-side consequence. The patch does not prescribe a single remediation for every previously exposed replica. Evidence about actual corruption and the deployment’s recovery procedures remains necessary before choosing a repair or replacement action.
Qualify the patched workflow rather than only the version
After updating, repeat the intended parallel standby-dump workflow and its restore check. A version string establishes installed code, while the workflow test establishes that the deployment uses the expected role, snapshot mechanism and output path. These are complementary observations. The release provides a correctness repair, not a throughput improvement or a blanket endorsement of every standby backup arrangement. Any operational recovery statement should identify which artifact and which replica state were actually checked.
Sources
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.