Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 8F3A79FBCA4 for ; Wed, 14 Feb 2007 03:26:26 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 50925-02-6 for ; Wed, 14 Feb 2007 03:26:11 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from power2u.goelsen.net (mail.goelsen.net [195.202.170.130]) by postgresql.org (Postfix) with ESMTP id 186D49FBCBF for ; Wed, 14 Feb 2007 03:20:03 -0400 (AST) X-Envelope-From: michael.monnerie@it-management.at Received: from localhost (localhost [127.0.0.1]) by power2u.goelsen.net (Postfix) with ESMTP id 3F8607265E for ; Wed, 14 Feb 2007 08:20:00 +0100 (CET) Received: from power2u.goelsen.net ([127.0.0.1]) by localhost (power2u.goelsen.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29244-07 for ; Wed, 14 Feb 2007 08:19:51 +0100 (CET) X-Envelope-From: michael.monnerie@it-management.at Received: from mailsrv.i.zmi.at (h081217116113.dyn.cm.kabsi.at [81.217.116.113]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mailsrv.i.zmi.at", Issuer "mailsrv.i.zmi.at" (not verified)) by power2u.goelsen.net (Postfix) with ESMTP id C163255537 for ; Wed, 14 Feb 2007 08:19:51 +0100 (CET) From: Michael Monnerie Organization: it-management http://it-management.at To: pgsql-admin@postgresql.org Subject: Re: online tape backup Date: Wed, 14 Feb 2007 08:19:49 +0100 User-Agent: KMail/1.9.5 References: <200702091951.14100.ejortegau@cable.net.co> <200702131027.02556@zmi.at> <29978.1171380879@sss.pgh.pa.us> In-Reply-To: <29978.1171380879@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6070288.KPPiXiCIXt"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200702140819.50017@zmi.at> X-Virus-Scanned: amavisd-new at goelsen.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=BAYES_50, FORGED_RCVD_HELO, SPF_HELO_PASS X-Spam-Level: X-Archive-Number: 200702/191 X-Sequence-Number: 24656 --nextPart6070288.KPPiXiCIXt Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Dienstag, 13. Februar 2007 16:34 Tom Lane wrote: > > 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. Seems you didn't understand me: When I make a vacuum, and then a base=20 backup, I do not need to include the WAL records anymore. But when I do=20 a base backup and afterwards vacuum, the WAL will be huge already, also=20 making restore much longer. Is there a simple way to turn on/off WAL? I'd like to use it, but then=20 switch it off, make vacuum, turn WAL on again and make a base backup.=20 That should save a reasonable amount of time and backup space.=20 Databases are about 40GB now (test phase) and will be considerable more=20 once in production (we're using dbmail.org as mailserver then). mfg zmi =2D-=20 // Michael Monnerie, Ing.BSc ----- http://it-management.at // Tel: 0676/846 914 666 .network.your.ideas. // PGP Key: "curl -s http://zmi.at/zmi4.asc | gpg --import" // Fingerprint: EA39 8918 EDFF 0A68 ACFB 11B7 BA2D 060F 1C6F E6B0 // Keyserver: www.keyserver.net Key-ID: 1C6FE6B0 --nextPart6070288.KPPiXiCIXt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBF0rgWui0GDxxv5rARAuCHAJ99dsZgqWn5iBeXsLM/f4UnoI8lQwCg1PLM 5Mf/H1xklaAube8LFRzeFAk= =H9t2 -----END PGP SIGNATURE----- --nextPart6070288.KPPiXiCIXt--