Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F091664FEDB for ; Thu, 30 Oct 2008 18:26:34 -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 20056-05 for ; Thu, 30 Oct 2008 18:26:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail136006.authsmtp.net (outmail136006.authsmtp.net [62.13.136.6]) by postgresql.org (Postfix) with ESMTP id 06EB064FD96 for ; Thu, 30 Oct 2008 18:26:31 -0300 (ADT) Received: from mail-c188.authsmtp.com (mail-c188.authsmtp.com [62.13.128.25]) by punt3.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m9ULQOLv035337; Thu, 30 Oct 2008 21:26:24 GMT Received: from [192.168.0.3] (85-211-99-122.dyn.gotadsl.co.uk [85.211.99.122]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m9ULQNoP003147; Thu, 30 Oct 2008 21:26:23 GMT Subject: Re: Deleting old archived WAL files From: Simon Riggs To: Chander Ganesan Cc: Jaume Sabater , pgsql-admin@postgresql.org In-Reply-To: <490A1668.6000107@otg-nc.com> References: <21789212.1911225387845942.JavaMail.root@zimbra.linuxsilo.net> <490A1668.6000107@otg-nc.com> Content-Type: text/plain Date: Thu, 30 Oct 2008 21:26:28 +0000 Message-Id: <1225401988.3971.440.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 6748215b-a6c9-11dd-aecc-001871e930f4 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFawVbYlpF HGQLW1xEUlx7W2V/ aQ4fZQBDYEtPQQxj TklLQE1QEQdtHhxP Wxd7LngMKGVGeH1x YUEsX3NSXwp8ckJ1 QE9RR3BXYzRpdWEe BBRFJlYHIx5Kfh5N bVEqXXANN2FJBC9q VzwaExUQGwAXBClR Tx0MK11aRkIHVjcm TBADAzgjVXIsY209 LhgrMTYy X-Authentic-SMTP: 61633235383639.cat.dmpriest.net.uk:1378/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! 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: 200810/188 X-Sequence-Number: 30644 On Thu, 2008-10-30 at 16:17 -0400, Chander Ganesan wrote: > Why? If you haven't saved a backup that you made previously (using > pg_start_backup()), having archived wal files is useless. I don't see > why you just don't arbitrarily remove them immediately. > > WAL files are useful when you have a "starting point" (i.e., a backup > made using the PITR backup method), and a set of WAL files generated > "after" the starting point. If you don't preserve the start point > (i.e., the PITR backup) then the WAL files are basically useless. They are still better than nothing at all. I haven't read the whole thread, but suggesting deleting things like that makes me go all twitchy. :-). Do a couple of proper backups and then delete em. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support