Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id EF0F06503D6 for ; Tue, 5 Aug 2008 10:20:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 39722-03-8 for ; Tue, 5 Aug 2008 10:20:40 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from QMTA03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by postgresql.org (Postfix) with ESMTP id 7764C6503CB for ; Tue, 5 Aug 2008 10:20:45 -0300 (ADT) Received: from OMTA14.westchester.pa.mail.comcast.net ([76.96.62.60]) by QMTA03.westchester.pa.mail.comcast.net with comcast id ybsc1Z0041HzFnQ53dLk7J; Tue, 05 Aug 2008 13:20:44 +0000 Received: from tucker.local ([67.160.97.168]) by OMTA14.westchester.pa.mail.comcast.net with comcast id ydLj1Z00E3dyZyT3adLjqV; Tue, 05 Aug 2008 13:20:44 +0000 X-Authority-Analysis: v=1.0 c=1 a=7jUAn3xyzPMA:10 a=epTmVMiNAAAA:8 a=92au4h3wtK1lGY4OoeIA:9 a=LlDWSM3IBesKtq1qz4oA:7 a=9wymy1x2OH-3D3lHUaYCjTQdR_QA:4 a=si9q_4b84H0A:10 a=LY0hPdMaydYA:10 From: Adrian Klaver To: pgsql-general@postgresql.org Subject: Re: Vacuum Vs Vacuum Full Date: Tue, 5 Aug 2008 06:20:42 -0700 User-Agent: KMail/1.9.9 Cc: Robert Shaw References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808050620.42805.aklaver@comcast.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/145 X-Sequence-Number: 135975 On Monday 04 August 2008 11:04:00 pm Robert Shaw wrote: > Hi, > > I've been trying to get to the bottom of the differences between a vacuum > and a vacuum full, it seems to me that the difference is that a vacuum full > also recovers disk space(and locks things making it less than useful on > production servers). But I believe that both will fix the transaction > ID(example message below). > > "WARNING: database "mydb" must be vacuumed within 177009986 transactions > HINT: To avoid a database shutdown, execute a full-database VACUUM in > "mydb"."Which is reason I ask the question, is full vacuum backup useful > for anything other than reclaiming disk space. > > On a side note, we doubled our page slots, but they ran out much faster(of > course) than we thought, is there a good sql statement that can tell you > what your current transaction ID is? > > Thanks in advance. > > Cheers, > Rob > Actually its not asking for a VACUUM FULL but a VACUUM of the full database, instead of selected tables. See below for complete details http://www.postgresql.org/docs/8.3/interactive/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND -- Adrian Klaver aklaver@comcast.net