Re: HOT is applied

Поиск
Список
Период
Сортировка
От Pavan Deolasee
Тема Re: HOT is applied
Дата
Msg-id 2e78013d0709202051o4dd5e29esf854c1e075c06f6a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: HOT is applied  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers


On 9/21/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:


but control never gets that far because neither xmin nor xmax is
committed yet.  We could fix that, probably, by considering the
xmin=xmax case in the xmin-in-progress case further up; but the
HEAP_UPDATED exclusion is still a problem.  Still, it seems like this
is leaving some money on the table when you think about pruning a HOT
chain.  Can we improve on it easily?


May be we can, but it would get a bit tricky. There might be a transaction
looking at the first tuple in the chain and waiting for this (inserting-deleting)
transaction to finish. If the waiting transaction is running in READ COMMITTED
mode, it would then follow the update chain. Removing any intermediate
tuples without fixing the previous tuple's xmax/ctid (or redirected line pointer)
would be tricky.

Thanks,
Pavan

--
Pavan Deolasee
EnterpriseDB     http://www.enterprisedb.com

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: HOT is applied
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: HOT is applied