Re: How to make lazy VACUUM of one table run in several transactions ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to make lazy VACUUM of one table run in several transactions ?
Дата
Msg-id 19162.1114441905@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to make lazy VACUUM of one table run in several transactions ?  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Ответы Re: How to make lazy VACUUM of one table run in several  (Hannu Krosing <hannu@tm.ee>)
Список pgsql-hackers
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> On Sun, Apr 24, 2005 at 12:02:37PM +0300, Hannu Krosing wrote:
>> Must some locks also be released an reaquired inside this loop, or is
>> there something else I should keep in mind when trying to do this ?

> There is "session lock" on the table.  You must release that.

Actually, the only hope of making this work is NOT to release that.
If you hold the appropriate lock at the session level then it is
reasonable to consider successive transactions within the vacuum
as being one big operation.

I think the major issue with this would be memory management, ie,
how to prevent CommitTransactionCommand from cleaning up all of
vacuum's working state.
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: How to make lazy VACUUM of one table run in several transactions ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PERFORM] Bad n_distinct estimation; hacks suggested?