mirror of
https://github.com/postgres/postgres.git
synced 2026-02-15 08:37:56 -05:00
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.
This commit is contained in:
parent
74cf802841
commit
02b9fd73ee
1 changed files with 0 additions and 1 deletions
|
|
@ -183,7 +183,6 @@ gistRedoPageUpdateRecord(XLogRecPtr lsn, XLogRecord *record)
|
|||
GistPageSetLeaf(page);
|
||||
}
|
||||
|
||||
GistPageGetOpaque(page)->rightlink = InvalidBlockNumber;
|
||||
PageSetLSN(page, lsn);
|
||||
PageSetTLI(page, ThisTimeLineID);
|
||||
MarkBufferDirty(buffer);
|
||||
|
|
|
|||
Loading…
Reference in a new issue