pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: brianb <brianb-pggeneral@evoserve.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Vacuum Question
Date: Fri, 02 Jun 2000 01:43:55 -0400
Message-ID: <13854.959924635@sss.pgh.pa.us> (raw)
In-Reply-To: <20000601091701.631.qmail@mail01.edsamail.com.ph>
References: <20000601091701.631.qmail@mail01.edsamail.com.ph>

"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



view thread (33+ messages)  latest in thread

Message-ID: <13854.959924635@sss.pgh.pa.us>
Permalink:  ../13854.959924635@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13854.959924635@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, brianb-pggeneral@evoserve.com
  Subject: Re: Vacuum Question
  In-Reply-To: <13854.959924635@sss.pgh.pa.us>
  References: <20000601091701.631.qmail@mail01.edsamail.com.ph> <13854.959924635@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox