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

Commiteacff26

Browse files
committed
Fix erroneous replay of GIN_UPDATE_META_PAGE WAL records.
A simple thinko in ginRedoUpdateMetapage, namely failing to increment aloop counter, led to inserting records into the last pending-list page inthe wrong order (the opposite of that intended). So far as I can tell,this would not upset the code that eventually flushes pending items intothe main part of the GIN index. But it did break the code that searchedthe pending list for matches, resulting in transient failure to findmatching entries during index lookups, as illustrated in bug #6307 fromMaksym Boguk.Back-patch to 8.4 where the incorrect code was introduced.
1 parentd2192a1 commiteacff26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/access/gin/ginxlog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@ ginRedoUpdateMetapage(XLogRecPtr lsn, XLogRecord *record)
529529
elog(ERROR,"failed to add item to index page");
530530

531531
tuples= (IndexTuple) (((char*)tuples)+tupsize);
532+
533+
off++;
532534
}
533535

534536
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp