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 0AAD19DCAE6 for ; Thu, 19 Jan 2006 16:53:29 -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 02570-02 for ; Thu, 19 Jan 2006 16:53:29 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id F28AF9DCAD4 for ; Thu, 19 Jan 2006 16:53:25 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k0JKrNj16672; Thu, 19 Jan 2006 15:53:23 -0500 (EST) From: Bruce Momjian Message-Id: <200601192053.k0JKrNj16672@candle.pha.pa.us> Subject: Re: WAL log archive frequency In-Reply-To: <17319.1137690111@sss.pgh.pa.us> To: Tom Lane Date: Thu, 19 Jan 2006 15:53:23 -0500 (EST) CC: Chris Jewell , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200601/229 X-Sequence-Number: 20317 Tom Lane wrote: > Chris Jewell writes: > > Further to my question on PITR, I have now implemented it :-) However, > > I was wondering about the frequency of archiving the WAL. Does > > postgresql wait until the current WAL file has reached 16MB before > > calling the archive_command? > > Yes. The assumption is the archive_command may be too stupid to deal > with archiving the same file more than once, and/or might have > performance issues with doing that, eg, if it's writing to tape or some > kind of write-once media. > > You can do something like saving the newest-by-timestamp file in the > xlog directory every minute or whatever via a cron job. This ought to > be better integrated though ... FYI, this is documented. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073