1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-18 04:29:09 +03:00

Revert "Allow on-line enabling and disabling of data checksums"

This reverts the backend sides of commit 1fde38beaa.
I have, at least for now, left the pg_verify_checksums tool in place, as
this tool can be very valuable without the rest of the patch as well,
and since it's a read-only tool that only runs when the cluster is down
it should be a lot safer.
This commit is contained in:
Magnus Hagander
2018-04-09 19:02:42 +02:00
parent 03c11796a9
commit a228cc13ae
39 changed files with 34 additions and 1658 deletions

View File

@@ -590,15 +590,6 @@ check_control_data(ControlData *oldctrl,
* check_for_isn_and_int8_passing_mismatch().
*/
/*
* If checksums have been turned on in the old cluster, but the
* checksumhelper have yet to finish, then disallow upgrading. The user
* should either let the process finish, or turn off checksums, before
* retrying.
*/
if (oldctrl->data_checksum_version == 2)
pg_fatal("transition to data checksums not completed in old cluster\n");
/*
* We might eventually allow upgrades from checksum to no-checksum
* clusters.

View File

@@ -226,7 +226,7 @@ typedef struct
uint32 large_object;
bool date_is_int;
bool float8_pass_by_value;
uint32 data_checksum_version;
bool data_checksum_version;
} ControlData;
/*