Re: Question about (lazy) vacuum

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question about (lazy) vacuum
Дата
Msg-id 19070.1156343726@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Question about (lazy) vacuum  (Hannu Krosing <hannu@skype.net>)
Список pgsql-hackers
Hannu Krosing <hannu@skype.net> writes:
> Ühel kenal päeval, K, 2006-08-23 kell 05:23, kirjutas Gregory Stark:
>> global xmin it just occurred to me to wonder: Does lazy vacuum need a
>> transaction at all?

> When I asked the same question, I was told that a lot of core
> functionality vacuum uses needs to be in transaction.

Locks for instance; you certainly need a lock on the table.  In general
a whole lot of the backend functionality is bound up in the transaction
start/stop mechanisms, and quite a bit of rearchitecting would be needed
to do very much outside a transaction.  Doesn't really seem worth it.
        regards, tom lane


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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: [PATCHES] Some minor changes to pgbench
Следующее
От: stark
Дата:
Сообщение: Re: Tricky bugs in concurrent index build