Re: Can master and slave on different PG versions?

From: Scott Mead <scottm(at)openscg(dot)com>
To: rammohan ganapavarapu <rammohanganap(at)gmail(dot)com>
Cc: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, "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-11 02:10:07
Message-ID: B193043A-AEFA-41A5-A45D-5A80839DB413@openscg.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

> On Oct 10, 2017, at 11:49, rammohan ganapavarapu <rammohanganap(at)gmail(dot)com> wrote:
>
> 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.
>
> Ram

No, you cannot do that with physical streaming replication. They must be the same major version number. 9.5 -> 9.5.

>
>> 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.
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Don Seiler 2017-10-11 14:30:50 Passwords in clear text in server log
Previous Message David G. Johnston 2017-10-10 22:18:42 Re: FQDN for replication connection in pg_hba.conf

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2017-10-11 06:54:32 Re: startup process stuck in recovery
Previous Message Tomas Vondra 2017-10-11 01:42:32 Re: core system is getting unresponsive because over 300 cpu load