diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2011-12-02 10:49:54 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2011-12-02 10:49:54 +0200 |
commit | 1e616f639156b2431725f7823c999486ca46c1ea (patch) | |
tree | f8e2cbade787fb90a73f68c3f9a9ff8fa03d9cd1 /src/include/access/xlogutils.h | |
parent | 15a5006aac1432da35ff6a7ae27a018ed300e860 (diff) |
During recovery, if we reach consistent state and still have entries in the
invalid-page hash table, PANIC immediately. Immediate PANIC is much better
than waiting for end-of-recovery, which is what we did before, because the
end-of-recovery might not come until months later if this is a standby
server.
Also refrain from creating a restartpoint if there are invalid-page entries
in the hash table. Restarting recovery from such a restartpoint would not
see the invalid references, and wouldn't be able to cross-check them when
consistency is reached. That wouldn't matter when things are going smoothly,
but the more sanity checks you have the better.
Fujii Masao
Diffstat (limited to 'src/include/access/xlogutils.h')
-rw-r--r-- | src/include/access/xlogutils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/access/xlogutils.h b/src/include/access/xlogutils.h index 5a26d268896..c838c9ebda3 100644 --- a/src/include/access/xlogutils.h +++ b/src/include/access/xlogutils.h @@ -14,6 +14,7 @@ #include "storage/bufmgr.h" +extern bool XLogHaveInvalidPages(void); extern void XLogCheckInvalidPages(void); extern void XLogDropRelation(RelFileNode rnode, ForkNumber forknum); |