Vacuum and Transactions - Mailing list pgsql-hackers

From Rod Taylor
Subject Vacuum and Transactions
Date
Msg-id 1128400016.6543.176.camel@home
Whole thread Raw
Responses Re: Vacuum and Transactions
Re: Vacuum and Transactions
Re: Vacuum and Transactions
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Tuning current tuplesort external sort code for 8.2
Next
From: Jeff Davis
Date:
Subject: Re: PG Killed by OOM Condition