Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id B872E632BF3 for ; Sat, 13 Feb 2010 14:17:48 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 17909-03 for ; Sat, 13 Feb 2010 18:17:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f201.google.com (mail-pz0-f201.google.com [209.85.222.201]) by mail.postgresql.org (Postfix) with ESMTP id AF1B163281B for ; Sat, 13 Feb 2010 14:17:37 -0400 (AST) Received: by pzk39 with SMTP id 39so4206634pzk.15 for ; Sat, 13 Feb 2010 10:17:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=xLLjOPw8vhEFmU+S9KglQBnPwPC7BIimWGvIAuGHYnA=; b=uqXmtKV7K8n6a0+Z/6SrASA96m8xrgeUNmMXqn5y2izyBgo5sc0lXAA8bMaDAlYtxl xHq1sac8EEnZDFxDbz+QLtGo7LFt9wW32Vl4s7Z8obik7FwQ8JrzBW5u3gnjSTyQDaic o9HtoFAk06hcFnjgNoTocLByzaIY+OH+7r9Qo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=OJF20r4ThtFMy2yol5z5k9UKcqkZGeJzIyXFcBxQHX+FzNgfnNebPS0QiUmw2Guyj7 7KQ6AVMKkpDeIZ8MUH+mNOi6d1lfAZS+7hvsZAB4kctrFeScF5oqEIZf/uvpIXxFXZmp 2XGyjI2CFrx0wEP2yxABxbtx1f0hdeeXngeBs= MIME-Version: 1.0 Received: by 10.141.213.24 with SMTP id p24mr550819rvq.5.1266085055989; Sat, 13 Feb 2010 10:17:35 -0800 (PST) In-Reply-To: <4B751BEA.7000202@enterprisedb.com> References: <4B751BEA.7000202@enterprisedb.com> From: Greg Stark Date: Sat, 13 Feb 2010 18:17:15 +0000 X-Google-Sender-Auth: 7a9ca52118def60b Message-ID: <407d949e1002131017u657e4aefo2647c2cbf24fe7b4@mail.gmail.com> Subject: Re: Streaming Replication docs To: Heikki Linnakangas Cc: PostgreSQL-development Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.619 tagged_above=-10 required=5 tests=AWL=-0.781, BAYES_00=-2.599, FS_REPLICA=1.041, SARE_SPEC_REPLICA=0.72 X-Spam-Level: X-Archive-Number: 201002/1093 X-Sequence-Number: 157436 On Fri, Feb 12, 2010 at 9:14 AM, Heikki Linnakangas wrote: > One glaring issue with the current documentation layout is that the > documentation for the various options in recovery.conf is split in two > places. I've been trying to explain to someone how to set this all up and they keep asking me why there's a separate recovery.conf file. I thought it made sense back when it was to control PITR and was a transient file which only applied as long as it was recovering but it seems now to have become part of the normal setup of the server. It seems like it would be much easier to keep things straight if you could set up the master and all the slaves identically and they would know when they had to store or retrieve files from the WAL archive and when they had to make or listen for streaming connections based on their master/slave status -- which is the only bit which needs to be stored outside the configuration so it can be changed dynamically. The master/slave status would be indicated by a trigger file or some external master election daemon connecting and issuing a query calling a magic sql function. But having the separate recovery.conf seems kind of pointless legacy structure at this point. -- greg