Re: Is there a way to make VACUUM run completely outside transaction

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is there a way to make VACUUM run completely outside transaction
Дата
Msg-id 27236.1107791474@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Is there a way to make VACUUM run completely outside transaction  (Hannu Krosing <hannu@tm.ee>)
Ответы Re: Is there a way to make VACUUM run completely outside  (Hannu Krosing <hannu@tm.ee>)
Список pgsql-hackers
Hannu Krosing <hannu@tm.ee> writes:
> As VACUUM is not something that can be rolled back, could we not make it
> run completely outside transactions.

No, because it has to be able to hold a table-level lock on the target
table.  Besides, where did you get the idea that it can't be rolled back?
The VACUUM FULL case, at least, has to go through huge pushups to be
sure it is rollback-safe.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Thinking about breaking up the BufMgrLock
Следующее
От: pgsql@mohawksoft.com
Дата:
Сообщение: Re: Query optimizer 8.0.1 (and 8.0)