diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-09-16 14:36:01 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-09-16 14:36:01 +0300 |
commit | 0892ecbc015930dde2cee9ad464b9b70fdb7667e (patch) | |
tree | 68ae2bf8f3d7739d0367a8a3a4838b8d710266e8 /src/backend/access/transam/xlog.c | |
parent | cdeb79adcfb2e46efd4f76c39184dd452ae1acd0 (diff) | |
download | postgresql-0892ecbc015930dde2cee9ad464b9b70fdb7667e.tar.gz postgresql-0892ecbc015930dde2cee9ad464b9b70fdb7667e.zip |
Add a GUC to report whether data page checksums are enabled.
Bernd Helmle
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 dc47c4760bf..fc495d6a62d 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -4844,6 +4844,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 fixed settings visible as GUC variables, too */ + SetConfigOption("data_checksums", DataChecksumsEnabled() ? "yes" : "no", + PGC_INTERNAL, PGC_S_OVERRIDE); } void |