Re: Tuple hint bits (INFOMASK) upon transaction abort

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Tuple hint bits (INFOMASK) upon transaction abort
Дата
Msg-id 12561.1150427831@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Tuple hint bits (INFOMASK) upon transaction abort  (letizia leo <letizia_leo@yahoo.it>)
Список pgsql-hackers
letizia leo <letizia_leo@yahoo.it> writes:
>  Transaction T1 updates a given tuple -- xmax is set to T1 on that tuple
>  ...
>  later on, T1 aborts... we believe that in this circumstance HEAP_XMAX_INVALID should be set on the tuple to signal
thatthe tuple was not actually "deleted" by T1 since this aborted.
 

Right.  It is not T1's responsibility to do this, however.  Rather, the
next transaction that examines the tuple will set the bit.  That is
exactly the same as if T1 commits: it doesn't set XMAX_COMMITTED, the
next inspector of the tuple does.

To make this work, the pg_clog entry that says whether T1 committed or
aborted must be kept until all tuples modified by T1 have certainly been
marked as COMMITTED or INVALID.  VACUUM is set up to track that.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Re-thing PG_MODULE_MAGIC
Следующее
От: "Jaime Casanova"
Дата:
Сообщение: alias for OLD and NEW in triggers