diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-09-16 14:36:01 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-02-20 10:46:54 +0200 |
commit | 5a7e75849cb595943fc605c4532716e9dd69f8a0 (patch) | |
tree | 519953e8d7b6f06c2d3f704bf1c726c7a662a2ab /src/backend/access/transam/xlog.c | |
parent | 0aaa4224108611d2fad80451c69db117eb86217f (diff) | |
download | postgresql-5a7e75849cb595943fc605c4532716e9dd69f8a0.tar.gz postgresql-5a7e75849cb595943fc605c4532716e9dd69f8a0.zip |
Add a GUC to report whether data page checksums are enabled.
Backported from master. It was an oversight in the original data checksums
patch to not have a GUC like this.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 314b9e97fae..d57bf50e0b4 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -3739,6 +3739,10 @@ ReadControlFile(void) " but the server was compiled without USE_FLOAT8_BYVAL."), errhint("It looks like you need to recompile or initdb."))); #endif + + /* Make the initdb settings visible as GUC variables, too */ + SetConfigOption("data_checksums", DataChecksumsEnabled() ? "yes" : "no", + PGC_INTERNAL, PGC_S_OVERRIDE); } void |