Re: Vacuum Question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "brianb" <brianb-pggeneral(at)evoserve(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Vacuum Question
Date: 2000-06-02 05:43:55
Message-ID: 13854.959924635@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"brianb" <brianb-pggeneral(at)evoserve(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Lockhart 2000-06-02 06:10:41 Re: textpos() in postgreSQL 7.0
Previous Message Tom Lane 2000-06-02 05:40:10 Re: query optimiser changes 6.5->7.0