1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-17 17:02:08 +03:00

Add a GUC to report whether data page checksums are enabled.

Bernd Helmle
This commit is contained in:
Heikki Linnakangas
2013-09-16 14:36:01 +03:00
parent cdeb79adcf
commit 0892ecbc01
3 changed files with 29 additions and 0 deletions

View File

@ -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