Thread: pgsql: Add GUC to enable WAL-logging of hint bits, even with checksums
pgsql: Add GUC to enable WAL-logging of hint bits, even with checksums
From
Heikki Linnakangas
Date:
Add GUC to enable WAL-logging of hint bits, even with checksums disabled. WAL records of hint bit updates is useful to tools that want to examine which pages have been modified. In particular, this is required to make the pg_rewind tool safe (without checksums). This can also be used to test how much extra WAL-logging would occur if you enabled checksums, without actually enabling them (which you can't currently do without re-initdb'ing). Sawada Masahiko, docs by Samrat Revagade. Reviewed by Dilip Kumar, with further changes by me. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/50e547096c4858a68abf09894667a542cc418315 Modified Files -------------- doc/src/sgml/config.sgml | 26 +++++++++++++++++++++++++ src/backend/access/heap/heapam.c | 2 +- src/backend/access/heap/visibilitymap.c | 6 +++--- src/backend/access/transam/xlog.c | 6 ++++++ src/backend/storage/buffer/bufmgr.c | 7 +++---- src/backend/utils/misc/guc.c | 11 +++++++++++ src/backend/utils/misc/postgresql.conf.sample | 1 + src/bin/pg_controldata/pg_controldata.c | 2 ++ src/bin/pg_resetxlog/pg_resetxlog.c | 2 ++ src/include/access/xlog.h | 12 ++++++++++++ src/include/access/xlog_internal.h | 1 + src/include/catalog/catversion.h | 2 +- src/include/catalog/pg_control.h | 1 + 13 files changed, 70 insertions(+), 9 deletions(-)