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 DBAEF9DC9ED for ; Mon, 13 Feb 2006 13:43:53 -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 74566-06 for ; Mon, 13 Feb 2006 13:43:52 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 8061D9DC86F for ; Mon, 13 Feb 2006 13:43:51 -0400 (AST) Received: by noel.decibel.org (Postfix, from userid 1001) id 882803982E; Mon, 13 Feb 2006 17:43:51 +0000 (UTC) Received: (hashcash-sendmail, from uid 1001); Mon, 13 Feb 2006 11:43:50 -0600 Date: Mon, 13 Feb 2006 11:43:50 -0600 From: "Jim C. Nasby" To: postgres@pivert.org Cc: pgsql-admin@postgresql.org Subject: Re: Switch log (WAL) Message-ID: <20060213174350.GA57845@pervasive.com> References: <200602121147.11349.postgres@pivert.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200602121147.11349.postgres@pivert.org> X-Operating-System: FreeBSD 6.0-RELEASE amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060213:postgres@pivert.org::Q4ftcWSxecgrlGSi:000000000000000000 0000000000000000000000001jSx X-Hashcash: 1:20:060213:pgsql-admin@postgresql.org::QPVTfODeAImihMnK:00000000000 0000000000000000000000008HIe X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.104 required=5 tests=[AWL=0.104] X-Spam-Score: 0.104 X-Spam-Level: X-Archive-Number: 200602/164 X-Sequence-Number: 20585 On Sun, Feb 12, 2006 at 11:47:11AM +0100, postgres@pivert.org wrote: > Hello, > > I'm new to the list, and I'm intereted in PostgreSQL replication (using WAL) > As I didn't find any script to do that, I make mine, that seems to work. > > However, I wonder how can I "switch WAL logs", in order to have the standby > database not too much late. > The database actually generates few logs, and I would like one WAL to be > generated once per hour. > > How Can I do that ? You can't. What you can do is copy the most recently touched log file as often as you'd like. That will limit your data loss should you need to fail-over. -- 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