summaryrefslogtreecommitdiff
path: root/src/backend/access/rmgrdesc/xlogdesc.c
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2018-04-09 19:02:42 +0200
committerMagnus Hagander <magnus@hagander.net>2018-04-09 19:03:42 +0200
commita228cc13aeabff308d6dfc98a1015865f5393fce (patch)
tree4704837fb075ccf7c8e5ecc10f341e527ed0e16d /src/backend/access/rmgrdesc/xlogdesc.c
parent03c11796a95cc20a4559a103019d4d22a116a13c (diff)
Revert "Allow on-line enabling and disabling of data checksums"
This reverts the backend sides of commit 1fde38beaa0c3e66c340efc7cc0dc272d6254bb0. 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.
Diffstat (limited to 'src/backend/access/rmgrdesc/xlogdesc.c')
-rw-r--r--src/backend/access/rmgrdesc/xlogdesc.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/backend/access/rmgrdesc/xlogdesc.c b/src/backend/access/rmgrdesc/xlogdesc.c
index a31f8b806a8..00741c7b09e 100644
--- a/src/backend/access/rmgrdesc/xlogdesc.c
+++ b/src/backend/access/rmgrdesc/xlogdesc.c
@@ -17,7 +17,6 @@
#include "access/xlog.h"
#include "access/xlog_internal.h"
#include "catalog/pg_control.h"
-#include "storage/bufpage.h"
#include "utils/guc.h"
#include "utils/timestamp.h"
@@ -138,18 +137,6 @@ xlog_desc(StringInfo buf, XLogReaderState *record)
xlrec.ThisTimeLineID, xlrec.PrevTimeLineID,
timestamptz_to_str(xlrec.end_time));
}
- else if (info == XLOG_CHECKSUMS)
- {
- xl_checksum_state xlrec;
-
- memcpy(&xlrec, rec, sizeof(xl_checksum_state));
- if (xlrec.new_checksumtype == PG_DATA_CHECKSUM_VERSION)
- appendStringInfo(buf, "on");
- else if (xlrec.new_checksumtype == PG_DATA_CHECKSUM_INPROGRESS_VERSION)
- appendStringInfo(buf, "inprogress");
- else
- appendStringInfo(buf, "off");
- }
}
const char *
@@ -195,9 +182,6 @@ xlog_identify(uint8 info)
case XLOG_FPI_FOR_HINT:
id = "FPI_FOR_HINT";
break;
- case XLOG_CHECKSUMS:
- id = "CHECKSUMS";
- break;
}
return id;