Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C64F0632843 for ; Thu, 11 Feb 2010 18:32:59 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 47954-05 for ; Thu, 11 Feb 2010 22:32:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp-int-m.obspm.fr (smtp-int-m.obspm.fr [145.238.187.15]) by mail.postgresql.org (Postfix) with ESMTP id DFAA86323A4 for ; Thu, 11 Feb 2010 18:32:48 -0400 (AST) Received: from obspm.fr (pcjas.obspm.fr [145.238.184.233]) by smtp-int-m.obspm.fr (8.14.3/8.14.3/SIO Observatoire de Paris - 07/2009) with ESMTP id o1BMWicU021145 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 11 Feb 2010 23:32:47 +0100 Date: Thu, 11 Feb 2010 23:32:45 +0100 From: Albert Shih To: pgsql-admin@postgresql.org Subject: How to manage WAL Message-ID: <20100211223245.GA13434@obspm.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.20 (2009-06-14) X-Miltered: at smtp-int-m.obspm.fr with ID 4B74858C.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4B74858C.000/145.238.184.233/pcjas.obspm.fr/obspm.fr/ X-j-chkmail-Score: MSGID : 4B74858C.000 on smtp-int-m.obspm.fr : j-chkmail score : . : R=. U=. O=. B=0.036 -> S=0.036 X-j-chkmail-Status: Ham X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=AWL=0.000, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/100 X-Sequence-Number: 33703 Hi all I would like to known what's best way to manage the WAL. Let's me explain : at beginning I do something like psql -c "select pg_start_backup('complete');" rsync /pgsql backup_server: psql -c "select pg_stop_backup();" and I backup /WAL directory but after sometime the /WAL directory become big. So can I do something like postgresql stop rm /WAL/* postgresql start psql -c "select pg_start_backup('complete');" rsync /pgsql backup_server: psql -c "select pg_stop_backup();" and continu to backup /WAL ? Regards. JAS -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex Heure local/Local time: Jeu 11 fév 2010 23:28:31 CET