X-Original-To: pgsql-patches-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5A614D1B344 for ; Thu, 29 Jul 2004 14:08:21 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61909-10 for ; Thu, 29 Jul 2004 17:08:09 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id C8910D1B4A2 for ; Thu, 29 Jul 2004 14:08:07 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i6TH7pK15909; Thu, 29 Jul 2004 13:07:51 -0400 (EDT) From: Bruce Momjian Message-Id: <200407291707.i6TH7pK15909@candle.pha.pa.us> Subject: Re: [HACKERS] Point in Time Recovery In-Reply-To: <200407281621.i6SGLlD28030@candle.pha.pa.us> To: Bruce Momjian Date: Thu, 29 Jul 2004 13:07:51 -0400 (EDT) Cc: Simon Riggs , Tom Lane , Klaus Naumann , markw@osdl.org, pgsql-patches@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (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, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/563 X-Sequence-Number: 12233 Bruce Momjian wrote: > > I do think we need a boolean for start/stop of archiving, rather than > setting it to '' to turn it off. Tom, I think the group agreed to this > on clarity grounds. I would like the server to throw an error if you > try to turn on archiving and the command is set to ''. Let me illustrate. To turn off archiving you have to change: #archive_command = '' archive_command = 'cp %p /mnt/server/archivedir/%f' to archive_command = '' #archive_command = 'cp %p /mnt/server/archivedir/%f' and if you comment both or neither, you have problems. With a boolean it would be: archive_mode = on archive_command = 'cp %p /mnt/server/archivedir/%f' archive_mode = off archive_command = 'cp %p /mnt/server/archivedir/%f' Now, if you say people will rarely turn archiving on/off, then one parameter seems to make more sense. -- 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