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:51:40 +0300 |
commit | 7ca32e255ba4f7e55bbdbcf0df996ac62798672b (patch) | |
tree | fecd0bdfaa6e57aa1186e83dd8b98c277f186c79 /src/backend/access/gist/gistxlog.c | |
parent | 38a2b95c342c0d3d261d525a74943a977725483e (diff) | |
download | postgresql-7ca32e255ba4f7e55bbdbcf0df996ac62798672b.tar.gz postgresql-7ca32e255ba4f7e55bbdbcf0df996ac62798672b.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 7cc64aeb490..e12b9c66dc1 100644 --- a/src/backend/access/gist/gistxlog.c +++ b/src/backend/access/gist/gistxlog.c @@ -182,7 +182,6 @@ gistRedoPageUpdateRecord(XLogRecPtr lsn, XLogRecord *record) GistPageSetLeaf(page); } - GistPageGetOpaque(page)->rightlink = InvalidBlockNumber; PageSetLSN(page, lsn); MarkBufferDirty(buffer); UnlockReleaseBuffer(buffer); |