Vacuum and Transactions

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Vacuum and Transactions
Дата
Msg-id 1128400016.6543.176.camel@home
обсуждение исходный текст
Ответы Re: Vacuum and Transactions  (Simon Riggs <simon@2ndquadrant.com>)
Re: Vacuum and Transactions  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Vacuum and Transactions  (Hannu Krosing <hannu@skype.net>)
Список pgsql-hackers
As I understand it vacuum operates outside of the regular transaction
and if you stop it (SIGTERM, or pg_cancel_backend()) some of the work it
accomplished will be kept when it rolls back.

For large structures with a ton of dead entries (which I seem to have a
case), running vacuum takes long enough that high-churn structures begin
to experience difficulties.

Is it reasonable to cancel and restart the vacuum process periodically
(say every 12 hours) until it manages to complete the work? It takes
about 2 hours to do the table scan, and should get in about 10 hours of
index work each round.

The vacuum ignores vacuum transaction concept looks handy right now.

-- 



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Tuning current tuplesort external sort code for 8.2
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: PG Killed by OOM Condition