Re: Vacuum Question - Mailing list pgsql-general

From Tom Lane
Subject Re: Vacuum Question
Date
Msg-id 13854.959924635@sss.pgh.pa.us
Whole thread Raw
In response to Vacuum Question  ("brianb" <brianb-pggeneral@evoserve.com>)
List pgsql-general
"brianb" <brianb-pggeneral@evoserve.com> writes:
> I have a Postgres application that must run 24x7. If postgres needs to be
> vacuumed periodically, must I take the application offline completely, or
> is it enough to disallow write (INSERT/UPDATE) access while allowing read
> access?

You're wasting your time to think of allowing or disallowing access;
VACUUM is quite capable of locking out other accesses without help ;-)

The short answer is that a table being vacuumed is locked against any
other access, read or write; but only that one table.  You might as
well leave the rest of the database open for use.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: query optimiser changes 6.5->7.0
Next
From: Thomas Lockhart
Date:
Subject: Re: textpos() in postgreSQL 7.0