Re: XMAX weirdness (was: Plans for solving the VACUUM problem)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: XMAX weirdness (was: Plans for solving the VACUUM problem)
Дата
Msg-id 16444.990645134@sss.pgh.pa.us
обсуждение исходный текст
Ответ на XMAX weirdness (was: Plans for solving the VACUUM problem)  (Hannu Krosing <hannu@tm.ee>)
Список pgsql-hackers
Hannu Krosing <hannu@tm.ee> writes:
> but then no xmax should ever be visible in a regular query :

Not so.  For example, if a transaction tried to delete a tuple, but is
either still open or rolled back, then other transactions would see its
XID in the tuple's xmax.  Also, SELECT FOR UPDATE uses xmax to record
the XID of the transaction that has the tuple locked --- that's the
case you are seeing, because of the SELECT FOR UPDATE done by the
foreign-key triggers on the table.

There is a claim in the current documentation that xmax is never nonzero
in a visible tuple, but that's incorrect ...
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: ADD/DROP CONSTRAINT and inheritance
Следующее
От: Tom Lane
Дата:
Сообщение: Re: select ... for update and inheritence