Re: Can master and slave on different PG versions?

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: rammohan ganapavarapu <rammohanganap(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Can master and slave on different PG versions?
Date: 2017-10-10 16:05:38
Message-ID: CAOR=d=2NRSRY6ManHb8KktWqCZ9xWZ-B9EVM=2Migddm0n7Gjg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Tue, Oct 10, 2017 at 9:49 AM, rammohan ganapavarapu
<rammohanganap(at)gmail(dot)com> wrote:
>
> On Tue, Oct 10, 2017 at 8:26 AM, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
> wrote:
>>
>> On Mon, Oct 9, 2017 at 5:06 PM, rammohan ganapavarapu
>> <rammohanganap(at)gmail(dot)com> wrote:
>> > Hi,
>> >
>> > Is it possible to add 9.6 version Slave to 9.4 master?
>>
>> Standard usage for Slony. I've used it for dozens of upgrades in place
>> with a few seconds switch over time. It's not as complex as it first
>> appears, but test on something other than production please.

> I am getting this error when i try to add 9.6 slave to 9.4 master.
>
> < 2017-10-09 22:56:31.081 UTC > FATAL: database files are incompatible with
> server < 2017-10-09 22:56:31.081 UTC > DETAIL: The data directory was
> initialized by PostgreSQL version 9.4, which is not compatible with this
> version 9.6.1.

Please don't top post.

So Are you trying to use streaming replication? That won't work. I was
suggesting using Slony for replication if you need to do that.

http://slony.info/documentation/index.html

It's a trigger based replication engine for postgresql designed back
in the early days and useful for replication between different
versions.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message rammohan ganapavarapu 2017-10-10 22:08:00 FQDN for replication connection in pg_hba.conf
Previous Message rammohan ganapavarapu 2017-10-10 15:49:31 Re: Can master and slave on different PG versions?

Browse pgsql-general by date

  From Date Subject
Next Message Christophe Pettus 2017-10-10 18:37:15 Re: startup process stuck in recovery
Previous Message rammohan ganapavarapu 2017-10-10 15:49:31 Re: Can master and slave on different PG versions?