Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1ACAE650242 for ; Fri, 31 Oct 2008 09:12:24 -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 25537-04 for ; Fri, 31 Oct 2008 09:12:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from zimbra.linuxsilo.net (zimbra.linuxsilo.net [92.48.122.79]) by postgresql.org (Postfix) with ESMTP id 7FE956501AC for ; Fri, 31 Oct 2008 09:12:16 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.linuxsilo.net (Postfix) with ESMTP id 8CF062A2EB for ; Fri, 31 Oct 2008 12:12:12 +0000 (GMT) X-Virus-Scanned: amavisd-new at Received: from zimbra.linuxsilo.net ([127.0.0.1]) by localhost (zimbra.linuxsilo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4nZKtH3IL+k4 for ; Fri, 31 Oct 2008 12:12:12 +0000 (GMT) Received: from zimbra.linuxsilo.net (zimbra.linuxsilo.net [92.48.122.79]) by zimbra.linuxsilo.net (Postfix) with ESMTP id EA0ED2A2EA for ; Fri, 31 Oct 2008 12:12:11 +0000 (GMT) Date: Fri, 31 Oct 2008 12:12:11 +0000 (GMT) From: Jaume Sabater To: pgsql-admin@postgresql.org Message-ID: <20560805.1971225455131817.JavaMail.root@zimbra.linuxsilo.net> In-Reply-To: <490A1668.6000107@otg-nc.com> Subject: Re: Deleting old archived WAL files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [212.170.239.110] X-Mailer: Zimbra 5.0.10_GA_2609.DEBIAN4.0 (ZimbraWebClient - FF3.0 (Linux)/5.0.10_GA_2609.DEBIAN4.0) 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/191 X-Sequence-Number: 30647 Chander Ganesan wrote: > Note: If you are using 8.3, you can even just disable the > archive_command when you aren't doing a recovery... Hmmm... after reading these pages: http://www.postgresql.org/docs/8.3/static/continuous-archiving.html#BACKUP-ARCHIVING-WAL http://www.postgresql.org/docs/8.3/static/runtime-config-wal.html#GUC-ARCHIVE-COMMAND I understand that, if the archive_command is set to an empty string, then WAL files will accumulate in pg_xlog/ until a working archive_command is re-established. So, should I set the archive_command parameter to any of these? 1. exit 0 2. cp %p /dev/null Or something similar. I mean this as I have no intention to preserve them unless I am doing an online recovery, in which case I would actually set a meaningful value into that parameter: archive_command = '/bin/cp %p /var/lib/postgresql/pg_xlog_archive/%f' -- Jaume Sabater http://linuxsilo.net/ "Ubi sapientas ibi libertas"