X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 429EBD1B224 for ; Fri, 4 Jun 2004 17:38:56 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 15300-07 for ; Fri, 4 Jun 2004 20:38:54 +0000 (GMT) Received: from mr1.surnet.cl (av1.surnet.cl [216.155.73.168]) by svr1.postgresql.org (Postfix) with ESMTP id 0A4B9D1B1EC for ; Fri, 4 Jun 2004 17:38:51 -0300 (ADT) Received: from smtp1.surnet.cl (216.155.73.168) by mr1.surnet.cl (7.0.024) id 403F6D250186CF10; Fri, 4 Jun 2004 16:38:22 -0400 Received: from av2.surnet.cl ([216.155.73.169]) by smtp1.surnet.cl (MailMonitor for SMTP v1.2.2 ) ; Fri, 4 Jun 2004 16:38:21 -0400 (CLT) Received: from cluster.surnet.cl (216.155.73.164) by smtp2.surnet.cl (7.0.024) id 406CA669014FE873; Fri, 4 Jun 2004 16:37:23 -0400 Received: from 216.155.88.75.dsl.surnet.cl (216.155.88.70) by cluster.surnet.cl (7.0.024) (authenticated as alvherre@surnet.cl) id 403C729000A3D655; Fri, 4 Jun 2004 16:38:23 -0400 Received: by 216.155.88.75.dsl.surnet.cl (Postfix, from userid 500) id 59627134DC; Fri, 4 Jun 2004 16:38:15 -0400 (CLT) Date: Fri, 4 Jun 2004 16:38:15 -0400 From: Alvaro Herrera To: Bill Moran Cc: Rick Gigger , gsstark@mit.edu, pgsql-general@postgresql.org Subject: Re: VACUUM Question Message-ID: <20040604203815.GB28030@dcc.uchile.cl> References: <40345D0D.9060103@meerkatsoft.com> <87smdb1k0d.fsf@stark.xeocode.com> <40C0CE23.6060006@alpinenetworking.com> <20040604154045.14016347.wmoran@potentialtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040604154045.14016347.wmoran@potentialtech.com> User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200406/194 X-Sequence-Number: 61577 On Fri, Jun 04, 2004 at 03:40:45PM -0400, Bill Moran wrote: > Rick Gigger wrote: > > > Does VACUUM FULL just lock entire tables and thus cause you to > > essentially have downtime on that database because it doesn't respond > > quickly or do you actually have to shut down postgres to safely do a > > vacuum full? > > The former. You don't shut the database server down, but it won't be > responsive while vacuum full is running. But only for the table that's currently being vacuumed: there's only one table locked at any time. (A different issue is the IO storm caused by the vacuum, which makes everything else slower.) -- Alvaro Herrera () "En las profundidades de nuestro inconsciente hay una obsesiva necesidad de un universo lógico y coherente. Pero el universo real se halla siempre un paso más allá de la lógica" (Irulan)