Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQS7d-0005ta-IB for pgsql-general@arkaria.postgresql.org; Wed, 06 Jun 2018 06:40:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fQS7c-00057I-6S for pgsql-general@arkaria.postgresql.org; Wed, 06 Jun 2018 06:40:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQS7b-000530-R0 for pgsql-general@lists.postgresql.org; Wed, 06 Jun 2018 06:40:39 +0000 Received: from mail.i-mark.de ([188.138.104.222]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQS7P-000432-BM for pgsql-general@lists.postgresql.org; Wed, 06 Jun 2018 06:40:35 +0000 Received: from [192.168.178.20] (unknown [185.38.49.16]) by mail.i-mark.de (Postfix) with ESMTPSA id 18F881580702 for ; Wed, 6 Jun 2018 08:40:18 +0200 (CEST) Authentication-Results: loft7616.startdedicated.de; spf=pass (sender IP is 185.38.49.16) smtp.mailfrom=andreas@a-kretschmer.de smtp.helo=[192.168.178.20] Received-SPF: pass (loft7616.startdedicated.de: connection is authenticated) Subject: Re: Setting up replication from 9.4 to 10.4 To: pgsql-general@lists.postgresql.org References: From: Andreas Kretschmer Message-ID: <89eb13bf-870b-4a11-eb45-dd3288d7be3c@a-kretschmer.de> Date: Wed, 6 Jun 2018 08:40:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am 06.06.2018 um 08:16 schrieb Lionel Tressens: > Hello, > > We are running a single PG 9.4 database node we are switching to PG > 10.4 (which will run as master + setup of a slave) > > To minimize downtime when switching from the 9.4 server to the 10.4 > one, I would like to setup a replication stream instead of stopping > the production, dumping 9.4 and restoring in 10.4 which my take a lot > of time. > > The next steps would be to reinstall the 9.4 server from scratch with > 10.4 and setup this host as a slave, ready to take the master role if > needed (hot standby). > > Can such a replication be established between 9.4 and 10.4 and what > replication tool/schema to use ? I have been through the documentation > on replication in 9.4 and 10.4 but things are very confusing to me > about this point. > you can't use the in-build streaming replication between different major versions, but you can use trigger-based replications, for instance londiste or slony. You can also use use our extension pglogical, see https://www.2ndquadrant.com/en/resources/pglogical/. If i were you i would use the latter ;-) Regards, Andreas -- 2ndQuadrant - The PostgreSQL Support Company. www.2ndQuadrant.com