Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit601c01e

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 tohave scans concurrent with WAL replay. Resetting the right-link was notnecessary back then either, but it was done for the sake of tidiness. Butwith hot standby, it's wrong, because a concurrent scan might still need it.Backpatch all versions with hot standby, 9.0 and above.
1 parente118822 commit601c01e

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
@@ -182,7 +182,6 @@ gistRedoPageUpdateRecord(XLogRecPtr lsn, XLogRecord *record)
182182
GistPageSetLeaf(page);
183183
}
184184

185-
GistPageGetOpaque(page)->rightlink=InvalidBlockNumber;
186185
PageSetLSN(page,lsn);
187186
MarkBufferDirty(buffer);
188187
UnlockReleaseBuffer(buffer);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp