Re: HOT latest patch - version 8

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: HOT latest patch - version 8
Дата
Msg-id 22798.1184343058@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: HOT latest patch - version 8  (Heikki Linnakangas <heikki@enterprisedb.com>)
Ответы Re: HOT latest patch - version 8
Список pgsql-patches
Heikki Linnakangas <heikki@enterprisedb.com> writes:
> Tom Lane wrote:
>> Heikki Linnakangas <heikki@enterprisedb.com> writes:
>>> A much simpler approach would be to try to acquire the vacuum lock, and
>>> compact the page the usual way, and fall back to a cold update if we
>>> can't get the lock immediately.
>>
>> Seems like that could work.

> I just realized that there's a big problem with that. The process doing
> the update surely holds a pin on the buffer itself. Needs more thought..

So does VACUUM when it's trying to lock a page, no?  In any case we
could surely make an extra parameter to LockBufferForCleanup if it
really needs to distinguish the cases.

            regards, tom lane

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: HOT latest patch - version 8
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: HOT latest patch - version 8