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 D723BD1B182 for ; Sat, 17 Jul 2004 16:18:31 -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 39925-03 for ; Sat, 17 Jul 2004 19:18:30 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id E188CD1B16A for ; Sat, 17 Jul 2004 16:18:28 -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 i6HJIQH9016191; Sat, 17 Jul 2004 15:18:26 -0400 (EDT) To: Bruce Momjian Cc: Simon Riggs , pgsql-patches@postgresql.org Subject: Re: [HACKERS] Point in Time Recovery In-reply-to: <200407171908.i6HJ8hc06808@candle.pha.pa.us> References: <200407171908.i6HJ8hc06808@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Sat, 17 Jul 2004 15:08:43 -0400" Date: Sat, 17 Jul 2004 15:18:26 -0400 Message-ID: <16190.1090091906@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/284 X-Sequence-Number: 11954 Bruce Momjian writes: > Tom Lane wrote: >> What is the point of having both archive_program and archive_dest as >> GUC variables? > I assume archive_dest is used for both archive and recovery of archives. You assume wrong; it's not used there. There isn't any real good reason to suppose that the recovery process is going to fetch the files from exactly where archiving put them, anyhow. > I think the idea is that you would turn archiving on and off regularly Why in the world would you do that? People who want PITR at all will want it 24x7. > while you might never change the archive_command value. Also, how would > you disable it? Set it to "", and if you do, you then have not way to > remember your command string when you want to re-enable it. Leave the original value in a comment, if you're going to want it again later. I don't think any of the above arguments outweigh the risk of people shooting themselves in the foot by enabling archive_mode without specifying a proper command/destination. regards, tom lane