Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 035D69FB7E3 for ; Tue, 13 Feb 2007 11:35:01 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 23501-08 for ; Tue, 13 Feb 2007 11:34:53 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id D7DF49FB74C for ; Tue, 13 Feb 2007 11:34:53 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l1DFYdH8029979; Tue, 13 Feb 2007 10:34:40 -0500 (EST) To: Michael Monnerie cc: pgsql-admin@postgresql.org Subject: Re: online tape backup In-reply-to: <200702131027.02556@zmi.at> References: <200702091951.14100.ejortegau@cable.net.co> <200702131027.02556@zmi.at> Comments: In-reply-to Michael Monnerie message dated "Tue, 13 Feb 2007 10:26:29 +0100" Date: Tue, 13 Feb 2007 10:34:39 -0500 Message-ID: <29978.1171380879@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.081 tagged_above=0 required=5 tests=AWL, BAYES_50, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200702/175 X-Sequence-Number: 24640 Michael Monnerie writes: > From what I understand, if I run a vacuum, the WAL logs will be > enormous, as they do not simply store the vacuum command itself, but > every single operation done on the db. > If that's true, running vacuum before the base backup could be better, > as there are less WAL logs to store, making the backup smaller, right? You're suffering from a fundamental misconception about the nature of WAL. Vacuum doesn't "shrink WAL", and neither does anything else; WAL is a history of every action ever taken in the database, and so a vacuum will just add a bunch more to that history. regards, tom lane