Re: HOT patch - version 14

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: HOT patch - version 14
Дата
Msg-id 2661.1188516276@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: HOT patch - version 14  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-patches
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Tom Lane escribi�:
>> Not if someone else releases lock before committing.

> FWIW, a red flag raised for me here, though maybe it is irrelevant or
> unimportant.  Currently, VACUUM acquires an exclusive lock for
> truncating the table.  The lock is kept till commit.  However I am
> proposing that it be released before commit.

I think that's all right, because it's dealing with a different set of
concerns.  AFAICS the only issue for truncation is to prevent physical
access to the blocks in question until we can get rid of them.  Once
they're gone, if there wasn't an active seqscan (with an
already-established notion of the max block number to scan to), there
would be no reason for anyone to try to touch them.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: HOT patch - version 14
Следующее
От: "Pavan Deolasee"
Дата:
Сообщение: Re: HOT patch - version 14