Received: from sss2.sss.pgh.pa.us (sss.pgh.pa.us [209.114.166.2]) by hub.org (8.9.3/8.9.3) with ESMTP id BAA36469 for ; Fri, 2 Jun 2000 01:44:24 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss2.sss.pgh.pa.us (8.9.3/8.9.3) with ESMTP id BAA13857; Fri, 2 Jun 2000 01:43:55 -0400 (EDT) To: "brianb" cc: pgsql-general@postgresql.org Subject: Re: Vacuum Question In-reply-to: <20000601091701.631.qmail@mail01.edsamail.com.ph> References: <20000601091701.631.qmail@mail01.edsamail.com.ph> Comments: In-reply-to "brianb" message dated "Thu, 01 Jun 2000 09:17:01 +0000" Date: Fri, 02 Jun 2000 01:43:55 -0400 Message-ID: <13854.959924635@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200006/66 "brianb" 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