aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/spgist.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-02-08 15:45:30 -0500
committerRobert Haas <rhaas@postgresql.org>2017-02-08 15:45:30 -0500
commita507b86900f695aacc8d52b7d2cfcb65f58862a2 (patch)
tree1cc25aaddb8613d2744e803e3ea970fd50d1e309 /src/include/access/spgist.h
parent115cb31597fac8a17202d1e41da8baf33fcb60cf (diff)
downloadpostgresql-a507b86900f695aacc8d52b7d2cfcb65f58862a2.tar.gz
postgresql-a507b86900f695aacc8d52b7d2cfcb65f58862a2.zip
Add WAL consistency checking facility.
When the new GUC wal_consistency_checking is set to a non-empty value, it triggers recording of additional full-page images, which are compared on the standby against the results of applying the WAL record (without regard to those full-page images). Allowable differences such as hints are masked out, and the resulting pages are compared; any difference results in a FATAL error on the standby. Kuntal Ghosh, based on earlier patches by Michael Paquier and Heikki Linnakangas. Extensively reviewed and revised by Michael Paquier and by me, with additional reviews and comments from Amit Kapila, Álvaro Herrera, Simon Riggs, and Peter Eisentraut.
Diffstat (limited to 'src/include/access/spgist.h')
-rw-r--r--src/include/access/spgist.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/access/spgist.h b/src/include/access/spgist.h
index aaf78bca97d..6f59c0bbc52 100644
--- a/src/include/access/spgist.h
+++ b/src/include/access/spgist.h
@@ -219,5 +219,6 @@ extern void spg_desc(StringInfo buf, XLogReaderState *record);
extern const char *spg_identify(uint8 info);
extern void spg_xlog_startup(void);
extern void spg_xlog_cleanup(void);
+extern void spg_mask(char *pagedata, BlockNumber blkno);
#endif /* SPGIST_H */