diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-04-08 14:47:24 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-04-08 14:52:01 +0300 |
commit | ac0078c1de6614b1db40fd1c5d03e4989e7be060 (patch) | |
tree | b8b2631af4427605193802fa89a7ea02b9255d1e /src/backend/access/gist/gistxlog.c | |
parent | 093d3da1dc3cfcf3209fa44d3fdacf7fcd349e93 (diff) | |
download | postgresql-ac0078c1de6614b1db40fd1c5d03e4989e7be060.tar.gz postgresql-ac0078c1de6614b1db40fd1c5d03e4989e7be060.zip |
Fix hot standby bug with GiST scans.
Don't reset the rightlink of a page when replaying a page update record.
This was a leftover from pre-hot standby days, when it was not possible to
have scans concurrent with WAL replay. Resetting the right-link was not
necessary back then either, but it was done for the sake of tidiness. But
with hot standby, it's wrong, because a concurrent scan might still need it.
Backpatch all versions with hot standby, 9.0 and above.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
-rw-r--r-- | src/backend/access/gist/gistxlog.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/backend/access/gist/gistxlog.c b/src/backend/access/gist/gistxlog.c index d0ca2ffa439..73e3743c79f 100644 --- a/src/backend/access/gist/gistxlog.c +++ b/src/backend/access/gist/gistxlog.c @@ -186,7 +186,6 @@ gistRedoPageUpdateRecord(XLogRecPtr lsn, XLogRecord *record) GistPageSetLeaf(page); } - GistPageGetOpaque(page)->rightlink = InvalidBlockNumber; PageSetLSN(page, lsn); PageSetTLI(page, ThisTimeLineID); MarkBufferDirty(buffer); |