pgsql: Fix HeapTupleSatisfiesVacuum on aborted updater xacts

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Fix HeapTupleSatisfiesVacuum on aborted updater xacts
Дата
Msg-id E1V0KaR-0006q0-Ey@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix HeapTupleSatisfiesVacuum on aborted updater xacts

By using only the macro that checks infomask bits
HEAP_XMAX_IS_LOCKED_ONLY to verify whether a multixact is not an
updater, and not the full HeapTupleHeaderIsOnlyLocked, it would come to
the wrong result in case of a multixact containing an aborted update;
therefore returning the wrong result code.  This would cause predicate.c
to break completely (as in bug report #8273 from David Leverton), and
certain index builds would misbehave.  As far as I can tell, other
callers of the bogus routine would make harmless mistakes or not be
affected by the difference at all; so this was a pretty narrow case.

Also, no other user of the HEAP_XMAX_IS_LOCKED_ONLY macro is as
careless; they all check specifically for the HEAP_XMAX_IS_MULTI case,
and they all verify whether the updater is InvalidXid before concluding
that it's a valid updater.  So there doesn't seem to be any similar bug.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/6737aa72ba7621d4db8e09210c65eecafc42b616

Modified Files
--------------
src/backend/utils/time/tqual.c |    4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: doc: Fix typos in conversion names.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Fix HeapTupleSatisfiesVacuum on aborted updater xacts