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 EA1EDD1B1DC for ; Sat, 17 Jul 2004 15:55:06 -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 30941-04 for ; Sat, 17 Jul 2004 18:55:05 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0CDEDD1B182 for ; Sat, 17 Jul 2004 15:55:03 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i6HIrlqs016032; Sat, 17 Jul 2004 14:53:47 -0400 (EDT) To: Simon Riggs Cc: pgman@candle.pha.pa.us, pgsql-patches@postgresql.org Subject: Re: [HACKERS] Point in Time Recovery In-reply-to: <1089845797.17493.4987.camel@stromboli> References: <200407141555.i6EFtnk22984@mail.osdl.org> <1089833620.17493.4624.camel@stromboli> <1089845797.17493.4987.camel@stromboli> Comments: In-reply-to Simon Riggs message dated "Wed, 14 Jul 2004 23:56:39 +0100" Date: Sat, 17 Jul 2004 14:53:46 -0400 Message-ID: <16031.1090090426@sss.pgh.pa.us> From: Tom Lane 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/281 X-Sequence-Number: 11951 [ ... some desultory reading of PITR patch ... ] What is the point of having both archive_program and archive_dest as GUC variables? Wouldn't it be simpler to fold them into one parameter, viz archive_command = 'cp %s /archivedir' For that matter, do we need a separate archive_mode boolean? The one thing I can positively guarantee about archive_dest (or archive_command) is that we cannot come up with a useful default for it (no, /tmp isn't good). Therefore it does not seem very reasonable to let the user turn on archiving without having explicitly specified an archive destination. I propose that we fold all three GUC flags into a single archive_command string whose built-in default is an empty string, and you enable archiving by setting it to something nonempty. regards, tom lane