Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xllnu-0007Y9-Vp for pgsql-docs@arkaria.postgresql.org; Tue, 04 Nov 2014 21:38:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xllnt-0002AY-Jh for pgsql-docs@arkaria.postgresql.org; Tue, 04 Nov 2014 21:38:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xllnt-0002AS-02 for pgsql-docs@postgresql.org; Tue, 04 Nov 2014 21:38:17 +0000 Received: from 01.zmailcloud.com ([192.198.85.104] helo=mx-out-1.zmailcloud.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xllno-00016i-TF for pgsql-docs@postgresql.org; Tue, 04 Nov 2014 21:38:14 +0000 Received: from smtp.01.com (smtp.01.com [10.10.0.43]) by mx-out-1.zmailcloud.com (Postfix) with ESMTP id 2F9265640B3; Tue, 4 Nov 2014 15:38:12 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 20136A0707; Tue, 4 Nov 2014 15:38:12 -0600 (CST) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tF8TpaJX8CHM; Tue, 4 Nov 2014 15:38:12 -0600 (CST) Received: from smtp.01.com (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 021A9A070E; Tue, 4 Nov 2014 15:38:12 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id D9218A0708; Tue, 4 Nov 2014 15:38:11 -0600 (CST) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id IzVc0ilDIimp; Tue, 4 Nov 2014 15:38:11 -0600 (CST) Received: from [172.47.23.103] (50-0-89-106.dsl.dynamic.fusionbroadband.com [50.0.89.106]) by smtp-out-1.01.com (Postfix) with ESMTPSA id 65C7AA0707; Tue, 4 Nov 2014 15:38:11 -0600 (CST) Message-ID: <54594742.7080707@agliodbs.com> Date: Tue, 04 Nov 2014 13:38:10 -0800 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Peter Eisentraut , pgsql-docs@postgresql.org Subject: Re: 9.4 recommendations for archive_command vs. replication slots References: <54454EB7.9010601@gmx.net> <54516E69.2060007@agliodbs.com> <54591901.4080808@gmx.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On 11/04/2014 10:20 AM, Peter Eisentraut wrote: > On 10/29/14 6:47 PM, Josh Berkus wrote: >> On 10/20/2014 11:04 AM, Peter Eisentraut wrote: >>> The 9.4 documentation for streaming replication still starts out by >>> making you set up archive_command and restore_command. Isn't that >>> obsolete now with replication slots? Shouldn't the first step be to set >>> up replication slots and then go from there? >> >> Well, bluntly, our replication docs should be taken out behind the barn >> with an axe. They tell you more about the development history of >> PostgreSQL than they tell you about how to replicate. > > That's true, but can we come to a consensus of what the preferred > advertised method should be? We should do this tutorial-style, taking things through increasingly complex replication setups: 1) simple two-server with pg_basebackup, no archiving, no slots (i.e. "replication in 5 minutes") 2) replication with archiving 3) replication with replication slots including "wal_keep_segments vs. replication slots" 4) synchronous replication 5) cascading replication 6) archiving-only replication 7) replication performance tuning I could write this if I *don't* need to do it as a patch against the existing docs. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs