X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A77369F9FE3 for ; Thu, 22 Jun 2006 11:03:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 81608-08 for ; Thu, 22 Jun 2006 11:03:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from alvh.no-ip.org (201-221-201-100.bk11-dsl.surnet.cl [201.221.201.100]) by postgresql.org (Postfix) with ESMTP id 496639F9ED6 for ; Thu, 22 Jun 2006 11:03:07 -0300 (ADT) Received: by alvh.no-ip.org (Postfix, from userid 1000) id D52D6C2D32C; Thu, 22 Jun 2006 10:03:04 -0400 (CLT) Date: Thu, 22 Jun 2006 10:03:04 -0400 From: Alvaro Herrera To: andy.shellam@mailnetwork.co.uk Cc: Stefan.Schmidt@schinkel.de, pgsql-admin@postgresql.org Subject: Re: 2,2gb of pg_xlog ?? Message-ID: <20060622140304.GJ29883@surnet.cl> Mail-Followup-To: andy.shellam@mailnetwork.co.uk, Stefan.Schmidt@schinkel.de, pgsql-admin@postgresql.org References: <0000EA81.4497EA95@192.168.3.13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/195 X-Sequence-Number: 22157 Andy Shellam wrote: > Archive_command = "mv %p /your/backup/directory/%f" Don't do this. Postgres itself will remove the file after the archive_command has copied it elsewhere. > Tip: if you're absolutely sure you will never need these transaction logs, > you can use the following command to delete them when they're finished with: > > Archive_command = "rm -f %p" Don't do this either. If you're not using PITR, just set a blank archive_command and Postgres will delete the file as soon as it's not needed anymore. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support