Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y9dKL-0004nb-EO for pgsql-admin@arkaria.postgresql.org; Fri, 09 Jan 2015 17:26:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y9dKK-0008VH-KF for pgsql-admin@arkaria.postgresql.org; Fri, 09 Jan 2015 17:26:24 +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 1Y9dKF-0008Kk-0Q for pgsql-admin@postgresql.org; Fri, 09 Jan 2015 17:26:19 +0000 Received: from cerberus.pinpointresearch.com ([66.7.238.130] helo=polaris.pinpointresearch.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y9dKA-0004g4-Nx for pgsql-admin@postgresql.org; Fri, 09 Jan 2015 17:26:16 +0000 Received: from [192.168.1.179] (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id 2A481E00EC82; Fri, 9 Jan 2015 09:26:14 -0800 (PST) Message-ID: <54B00F36.70801@pinpointresearch.com> Date: Fri, 09 Jan 2015 09:26:14 -0800 From: Steve Crawford User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Rob Cowell , "pgsql-admin@postgresql.org" Subject: Re: Replicating from 9.1.10 into 9.3.5 References: <1Y9dC8-0002qL-2Y@l31.mail.transversal.net> In-Reply-To: <1Y9dC8-0002qL-2Y@l31.mail.transversal.net> Content-Type: text/plain; charset=windows-1252; format=flowed 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-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On 01/09/2015 09:17 AM, Rob Cowell wrote: > Hi, > > Is it possible to set up replication from a 9.1.10 master to a 9.3.5 slave? For streaming log-based replication the answer is no: > FATAL: database files are incompatible with server > DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 903, but the server was compiled with PG_CONTROL_VERSION 937. > > Would I be better off dumping the data from 9.1.10 and re-importing into 9.3.5, then starting replication ? > (or is there an easier way?) :) There are lots of options. IIRC, Slony can be used for cross-version replication. Pg_upgrade can be used instead of a dump and restore. Which is easiest depends on your operational constraints. Of all the methods, "old-reliable" is a dump and restore. Set up replication after that. Be sure to use pg_dump from the *new* version to take the dump from the old database. And if you are going through the effort to upgrade, consider 9.4.0 at this point. There is work to support statement-based replication which will probably support replication-based upgrades in the future. But not from your version. Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin