Use PG_DATA_CHECKSUM_OFF instead of hardcoded value
Daniel Gustafsson <dgustafsson@postgresql.org>
Author:
Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2026-04-06T20:11:53Z
Releases:
19 (unreleased)
Use PG_DATA_CHECKSUM_OFF instead of hardcoded value For a long time, the online checksums patchset kept the "off" state as literal zero without a label to be consistent with the previous coding which only had a label for the "on" state. Later, when an "off" label was made not all uses in the code got the memo. Fix by setting these to PG_DATA_CHECKSUM_OFF. While there, fix a duplicate word in a comment introduced by the same commit. Author: Aleksander Alekseev <aleksander@tigerdata.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/CAJ7c6TPRTnQFXXX1CRcYoTLXw2swtDH==uSz1MYoMKdLrKZHjA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +5 −5 |
| src/backend/bootstrap/bootstrap.c | modified | +1 −1 |
| src/bin/pg_checksums/pg_checksums.c | modified | +2 −2 |
| src/bin/pg_combinebackup/pg_combinebackup.c | modified | +2 −2 |
| src/bin/pg_upgrade/controldata.c | modified | +5 −5 |
| src/bin/pg_upgrade/file.c | modified | +1 −1 |
Discussion
Cited messages not in the archive:
CAJ7c6TPRTnQFXXX1CRcYoTLXw2swtDH==uSz1MYoMKdLrKZHjA@mail.gmail.com