Skip to content

Commit 02b9fd7

Browse files
committed
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.
1 parent 74cf802 commit 02b9fd7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backend/access/gist/gistxlog.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ gistRedoPageUpdateRecord(XLogRecPtr lsn, XLogRecord *record)
183183
GistPageSetLeaf(page);
184184
}
185185

186-
GistPageGetOpaque(page)->rightlink = InvalidBlockNumber;
187186
PageSetLSN(page, lsn);
188187
PageSetTLI(page, ThisTimeLineID);
189188
MarkBufferDirty(buffer);

0 commit comments

Comments
 (0)