pgsql: Fix erroneous replay of GIN_UPDATE_META_PAGE WAL records.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix erroneous replay of GIN_UPDATE_META_PAGE WAL records.
Дата
Msg-id E1RU10F-0000hX-4w@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix erroneous replay of GIN_UPDATE_META_PAGE WAL records.

A simple thinko in ginRedoUpdateMetapage, namely failing to increment a
loop counter, led to inserting records into the last pending-list page in
the wrong order (the opposite of that intended).  So far as I can tell,
this would not upset the code that eventually flushes pending items into
the main part of the GIN index.  But it did break the code that searched
the pending list for matches, resulting in transient failure to find
matching entries during index lookups, as illustrated in bug #6307 from
Maksym Boguk.

Back-patch to 8.4 where the incorrect code was introduced.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/80cbf3401c6cab7e00628b9cf5ca204c0726b9cc

Modified Files
--------------
src/backend/access/gin/ginxlog.c |    2 ++
1 files changed, 2 insertions(+), 0 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix erroneous replay of GIN_UPDATE_META_PAGE WAL records.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Improve logging of autovacuum I/O activity