X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 1C0B99DC9D4 for ; Thu, 15 Dec 2005 16:40:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 55730-05 for ; Thu, 15 Dec 2005 16:40:51 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 3F4629DC81B for ; Thu, 15 Dec 2005 16:40:47 -0400 (AST) Received: by flake.decibel.org (Postfix, from userid 1001) id BA0701528B; Thu, 15 Dec 2005 14:40:48 -0600 (CST) Date: Thu, 15 Dec 2005 14:40:48 -0600 From: "Jim C. Nasby" To: "f.guidi@libero.it" Cc: pgsql-admin Subject: Re: backup and wal files Message-ID: <20051215204048.GA40699@pervasive.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/153 X-Sequence-Number: 19873 I haven't played with PITR, but I believe that if PostgreSQL doesn't get the right return code from the archive_command it will keep the WAL files around; maybe that's the problem. On Wed, Dec 14, 2005 at 10:57:38AM +0100, f.guidi@libero.it wrote: > Hello to all ... > I'm trying to install a backup system for my Postgresql 8.1.1 (on windows xp) using 3 wal files. > > So i change these parameters in postgresql.conf > checkpoint_segments = 3 > archive_command = 'copy "%p" "D:/PostgreSQL/backup/%f"' > > I stop the database service and then restart it ... > > Before restart i have 1 wal now i have 1 wal file ... > > I start to generate data to populate wal files and postgres start to generate new wal files and copy them to the destination folder. > > The problem is that files number don't stop to increase, now i have 10 wal files in pg_xlog and 9 files in backup folder ... > why the backup files don't be deleted ? > > thanks a lot in advance ... > > Fabio > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend > -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461