Re: Order of operations in lazy_vacuum_rel

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Order of operations in lazy_vacuum_rel
Дата
Msg-id 20100208173855.GN4113@alvh.no-ip.org
обсуждение исходный текст
Ответ на Order of operations in lazy_vacuum_rel  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Order of operations in lazy_vacuum_rel
Список pgsql-hackers
Tom Lane wrote:
> I see that lazy_vacuum_rel() truncates the heap before it does vacuuming
> of the free space map.  Once upon a time this wouldn't have mattered,
> but now it means that cancel interrupts are likely to be ignored for
> the duration of FreeSpaceMapVacuum().  Is that really necessary?
> Would it be okay to swap the two steps?

How would it matter?  Interrupts are not enabled until the transaction
is committed anyway, which must happen after both things have finished ..

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: damage control mode
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: damage control mode