pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedCan master and slave on different PG versions?
14+ messages / 6 participants
[nested] [flat]
* Can master and slave on different PG versions?
@ 2017-10-09 23:06 rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-09 23:15 ` Re: Can master and slave on different PG versions? David G. Johnston <david.g.johnston@gmail.com>
2017-10-10 15:26 ` Re: Can master and slave on different PG versions? Scott Marlowe <scott.marlowe@gmail.com>
0 siblings, 2 replies; 14+ messages in thread
From: rammohan ganapavarapu @ 2017-10-09 23:06 UTC (permalink / raw)
To: pgsql-admin
Hi,
Is it possible to add 9.6 version Slave to 9.4 master?
Thanks,
Ram
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
@ 2017-10-09 23:15 ` David G. Johnston <david.g.johnston@gmail.com>
2017-10-10 08:49 ` Re: Can master and slave on different PG versions? Ramesh <ramesh4f@gmail.com>
2017-11-08 16:17 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
1 sibling, 2 replies; 14+ messages in thread
From: David G. Johnston @ 2017-10-09 23:15 UTC (permalink / raw)
To: rammohan ganapavarapu <rammohanganap@gmail.com>; +Cc: pgsql-admin
On Mon, Oct 9, 2017 at 4:06 PM, rammohan ganapavarapu <
rammohanganap@gmail.com> wrote:
> Hi,
>
> Is it possible to add 9.6 version Slave to 9.4 master?
>
>
Physical replication, no; Logical replication, yes - if the software you
are using is compatible with both versions.
David J.
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-09 23:15 ` Re: Can master and slave on different PG versions? David G. Johnston <david.g.johnston@gmail.com>
@ 2017-10-10 08:49 ` Ramesh <ramesh4f@gmail.com>
1 sibling, 0 replies; 14+ messages in thread
From: Ramesh @ 2017-10-10 08:49 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: rammohan ganapavarapu <rammohanganap@gmail.com>; pgsql-admin
Generic Rule in all RDBMS.
Always receiving end should be higher. Means, slave should have higher
version than master server.
On Tue, Oct 10, 2017 at 4:45 AM, David G. Johnston <
david.g.johnston@gmail.com> wrote:
> On Mon, Oct 9, 2017 at 4:06 PM, rammohan ganapavarapu <
> rammohanganap@gmail.com> wrote:
>
>> Hi,
>>
>> Is it possible to add 9.6 version Slave to 9.4 master?
>>
>>
> Physical replication, no; Logical replication, yes - if the software you
> are using is compatible with both versions.
>
> David J.
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-09 23:15 ` Re: Can master and slave on different PG versions? David G. Johnston <david.g.johnston@gmail.com>
@ 2017-11-08 16:17 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-09 07:45 ` Re: Can master and slave on different PG versions? Shreeyansh Dba <shreeyansh2014@gmail.com>
2017-11-15 21:23 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
1 sibling, 2 replies; 14+ messages in thread
From: rammohan ganapavarapu @ 2017-11-08 16:17 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-admin
David,
So initially i have physical replication configured, so to upgrade slave to
9.6 version i did converted master slave to logical replication and then
try to upgrade the slave to 9.6. I am getting this error when i try to
start the slave. Any idea?
2017-11-08 05:08:49 UTC [20063]: [1-1] user= db= host= LOG: shutting down
2017-11-08 05:08:49 UTC [20063]: [2-1] user= db= host= LOG: database
system is shut down
2017-11-08 05:09:45 UTC [20322]: [1-1] user= db= host= LOG: database
system was shut down at 2017-11-08 05:08:55 UTC
2017-11-08 05:09:45 UTC [20322]: [2-1] user= db= host= LOG: entering
standby mode
2017-11-08 05:09:45 UTC [20322]: [3-1] user= db= host= WARNING: WAL was
generated with wal_level=minimal, data may be missing
2017-11-08 05:09:45 UTC [20322]: [4-1] user= db= host= HINT: This happens
if you temporarily set wal_level=minimal without taking a new base backup.
2017-11-08 05:09:45 UTC [20322]: [5-1] user= db= host= FATAL: hot standby
is not possible because wal_level was not set to "replica" or higher on the
master server
2017-11-08 05:09:45 UTC [20322]: [6-1] user= db= host= HINT: Either set
wal_level to "replica" on the master, or turn off hot_standby here.
2017-11-08 05:09:45 UTC [20312]: [3-1] user= db= host= LOG: startup
process (PID 20322) exited with exit code 1
2017-11-08 05:09:45 UTC [20312]: [4-1] user= db= host= LOG: aborting
startup due to startup process failure
2017-11-08 05:09:45 UTC [20312]: [5-1] user= db= host= LOG: database
system is shut down
Thanks,
Ram
On Mon, Oct 9, 2017 at 4:15 PM, David G. Johnston <
david.g.johnston@gmail.com> wrote:
> On Mon, Oct 9, 2017 at 4:06 PM, rammohan ganapavarapu <
> rammohanganap@gmail.com> wrote:
>
>> Hi,
>>
>> Is it possible to add 9.6 version Slave to 9.4 master?
>>
>>
> Physical replication, no; Logical replication, yes - if the software you
> are using is compatible with both versions.
>
> David J.
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-09 23:15 ` Re: Can master and slave on different PG versions? David G. Johnston <david.g.johnston@gmail.com>
2017-11-08 16:17 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
@ 2017-11-09 07:45 ` Shreeyansh Dba <shreeyansh2014@gmail.com>
2017-11-09 16:22 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
1 sibling, 1 reply; 14+ messages in thread
From: Shreeyansh Dba @ 2017-11-09 07:45 UTC (permalink / raw)
To: rammohan ganapavarapu <rammohanganap@gmail.com>; +Cc: pgsql-admin
On Thu, Nov 9, 2017 at 10:32 AM, Shreeyansh Dba <shreeyansh2014@gmail.com>
wrote:
>
>
> On Wed, Nov 8, 2017 at 9:47 PM, rammohan ganapavarapu <
> rammohanganap@gmail.com> wrote:
>
>> David,
>>
>> So initially i have physical replication configured, so to upgrade slave
>> to 9.6 version i did converted master slave to logical replication and then
>> try to upgrade the slave to 9.6. I am getting this error when i try to
>> start the slave. Any idea?
>>
>>
>> 2017-11-08 05:08:49 UTC [20063]: [1-1] user= db= host= LOG: shutting down
>> 2017-11-08 05:08:49 UTC [20063]: [2-1] user= db= host= LOG: database
>> system is shut down
>> 2017-11-08 05:09:45 UTC [20322]: [1-1] user= db= host= LOG: database
>> system was shut down at 2017-11-08 05:08:55 UTC
>> 2017-11-08 05:09:45 UTC [20322]: [2-1] user= db= host= LOG: entering
>> standby mode
>> 2017-11-08 05:09:45 UTC [20322]: [3-1] user= db= host= WARNING: WAL was
>> generated with wal_level=minimal, data may be missing
>> 2017-11-08 05:09:45 UTC [20322]: [4-1] user= db= host= HINT: This
>> happens if you temporarily set wal_level=minimal without taking a new base
>> backup.
>> 2017-11-08 05:09:45 UTC [20322]: [5-1] user= db= host= FATAL: hot
>> standby is not possible because wal_level was not set to "replica" or
>> higher on the master server
>> 2017-11-08 05:09:45 UTC [20322]: [6-1] user= db= host= HINT: Either set
>> wal_level to "replica" on the master, or turn off hot_standby here.
>> 2017-11-08 05:09:45 UTC [20312]: [3-1] user= db= host= LOG: startup
>> process (PID 20322) exited with exit code 1
>> 2017-11-08 05:09:45 UTC [20312]: [4-1] user= db= host= LOG: aborting
>> startup due to startup process failure
>> 2017-11-08 05:09:45 UTC [20312]: [5-1] user= db= host= LOG: database
>> system is shut down
>>
>> Thanks,
>> Ram
>>
>>
>>
>> On Mon, Oct 9, 2017 at 4:15 PM, David G. Johnston <
>> david.g.johnston@gmail.com> wrote:
>>
>>> On Mon, Oct 9, 2017 at 4:06 PM, rammohan ganapavarapu <
>>> rammohanganap@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Is it possible to add 9.6 version Slave to 9.4 master?
>>>>
>>>>
>>> Physical replication, no; Logical replication, yes - if the software
>>> you are using is compatible with both versions.
>>>
>>> David J.
>>>
>>
>>
> In addition to above, Slony also an option for keeping master & slave on
> different versions which play a key role during upgrades for reducing
> downtime drastically.
>
>
> --
> <https://shreeyansh.com/;
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-09 23:15 ` Re: Can master and slave on different PG versions? David G. Johnston <david.g.johnston@gmail.com>
2017-11-08 16:17 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-09 07:45 ` Re: Can master and slave on different PG versions? Shreeyansh Dba <shreeyansh2014@gmail.com>
@ 2017-11-09 16:22 ` rammohan ganapavarapu <rammohanganap@gmail.com>
0 siblings, 0 replies; 14+ messages in thread
From: rammohan ganapavarapu @ 2017-11-09 16:22 UTC (permalink / raw)
To: Shreeyansh Dba <shreeyansh2014@gmail.com>; +Cc: pgsql-admin
Shreeyansh,
I don't have option to use slony in my environment. So i changed physical
replication to logical replication by updating "wal_level = logical" on
master and syncked slave with pg_basebackup. After that i was able to
upgrade to 9.6 but when i try to start the slave i am getting "FATAL: hot
standby is not possible because wal_level was not set to "replica" or
higher on the master server" error. Any idea how to resolve this?
Thanks,
Ram
On Wed, Nov 8, 2017 at 11:45 PM, Shreeyansh Dba <shreeyansh2014@gmail.com>
wrote:
>
>
> On Thu, Nov 9, 2017 at 10:32 AM, Shreeyansh Dba <shreeyansh2014@gmail.com>
> wrote:
>
>>
>>
>> On Wed, Nov 8, 2017 at 9:47 PM, rammohan ganapavarapu <
>> rammohanganap@gmail.com> wrote:
>>
>>> David,
>>>
>>> So initially i have physical replication configured, so to upgrade slave
>>> to 9.6 version i did converted master slave to logical replication and then
>>> try to upgrade the slave to 9.6. I am getting this error when i try to
>>> start the slave. Any idea?
>>>
>>>
>>> 2017-11-08 05:08:49 UTC [20063]: [1-1] user= db= host= LOG: shutting
>>> down
>>> 2017-11-08 05:08:49 UTC [20063]: [2-1] user= db= host= LOG: database
>>> system is shut down
>>> 2017-11-08 05:09:45 UTC [20322]: [1-1] user= db= host= LOG: database
>>> system was shut down at 2017-11-08 05:08:55 UTC
>>> 2017-11-08 05:09:45 UTC [20322]: [2-1] user= db= host= LOG: entering
>>> standby mode
>>> 2017-11-08 05:09:45 UTC [20322]: [3-1] user= db= host= WARNING: WAL was
>>> generated with wal_level=minimal, data may be missing
>>> 2017-11-08 05:09:45 UTC [20322]: [4-1] user= db= host= HINT: This
>>> happens if you temporarily set wal_level=minimal without taking a new base
>>> backup.
>>> 2017-11-08 05:09:45 UTC [20322]: [5-1] user= db= host= FATAL: hot
>>> standby is not possible because wal_level was not set to "replica" or
>>> higher on the master server
>>> 2017-11-08 05:09:45 UTC [20322]: [6-1] user= db= host= HINT: Either set
>>> wal_level to "replica" on the master, or turn off hot_standby here.
>>> 2017-11-08 05:09:45 UTC [20312]: [3-1] user= db= host= LOG: startup
>>> process (PID 20322) exited with exit code 1
>>> 2017-11-08 05:09:45 UTC [20312]: [4-1] user= db= host= LOG: aborting
>>> startup due to startup process failure
>>> 2017-11-08 05:09:45 UTC [20312]: [5-1] user= db= host= LOG: database
>>> system is shut down
>>>
>>> Thanks,
>>> Ram
>>>
>>>
>>>
>>> On Mon, Oct 9, 2017 at 4:15 PM, David G. Johnston <
>>> david.g.johnston@gmail.com> wrote:
>>>
>>>> On Mon, Oct 9, 2017 at 4:06 PM, rammohan ganapavarapu <
>>>> rammohanganap@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Is it possible to add 9.6 version Slave to 9.4 master?
>>>>>
>>>>>
>>>> Physical replication, no; Logical replication, yes - if the software
>>>> you are using is compatible with both versions.
>>>>
>>>> David J.
>>>>
>>>
>>>
>> In addition to above, Slony also an option for keeping master & slave on
>> different versions which play a key role during upgrades for reducing
>> downtime drastically.
>>
>>
>> --
>> <https://shreeyansh.com/;
>>
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-09 23:15 ` Re: Can master and slave on different PG versions? David G. Johnston <david.g.johnston@gmail.com>
2017-11-08 16:17 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
@ 2017-11-15 21:23 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-16 16:58 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
1 sibling, 1 reply; 14+ messages in thread
From: rammohan ganapavarapu @ 2017-11-15 21:23 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-admin
Any one tried this before?
On Wed, Nov 8, 2017 at 8:17 AM, rammohan ganapavarapu <
rammohanganap@gmail.com> wrote:
> David,
>
> So initially i have physical replication configured, so to upgrade slave
> to 9.6 version i did converted master slave to logical replication and then
> try to upgrade the slave to 9.6. I am getting this error when i try to
> start the slave. Any idea?
>
>
> 2017-11-08 05:08:49 UTC [20063]: [1-1] user= db= host= LOG: shutting down
> 2017-11-08 05:08:49 UTC [20063]: [2-1] user= db= host= LOG: database
> system is shut down
> 2017-11-08 05:09:45 UTC [20322]: [1-1] user= db= host= LOG: database
> system was shut down at 2017-11-08 05:08:55 UTC
> 2017-11-08 05:09:45 UTC [20322]: [2-1] user= db= host= LOG: entering
> standby mode
> 2017-11-08 05:09:45 UTC [20322]: [3-1] user= db= host= WARNING: WAL was
> generated with wal_level=minimal, data may be missing
> 2017-11-08 05:09:45 UTC [20322]: [4-1] user= db= host= HINT: This happens
> if you temporarily set wal_level=minimal without taking a new base backup.
> 2017-11-08 05:09:45 UTC [20322]: [5-1] user= db= host= FATAL: hot standby
> is not possible because wal_level was not set to "replica" or higher on the
> master server
> 2017-11-08 05:09:45 UTC [20322]: [6-1] user= db= host= HINT: Either set
> wal_level to "replica" on the master, or turn off hot_standby here.
> 2017-11-08 05:09:45 UTC [20312]: [3-1] user= db= host= LOG: startup
> process (PID 20322) exited with exit code 1
> 2017-11-08 05:09:45 UTC [20312]: [4-1] user= db= host= LOG: aborting
> startup due to startup process failure
> 2017-11-08 05:09:45 UTC [20312]: [5-1] user= db= host= LOG: database
> system is shut down
>
> Thanks,
> Ram
>
>
>
> On Mon, Oct 9, 2017 at 4:15 PM, David G. Johnston <
> david.g.johnston@gmail.com> wrote:
>
>> On Mon, Oct 9, 2017 at 4:06 PM, rammohan ganapavarapu <
>> rammohanganap@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Is it possible to add 9.6 version Slave to 9.4 master?
>>>
>>>
>> Physical replication, no; Logical replication, yes - if the software
>> you are using is compatible with both versions.
>>
>> David J.
>>
>
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-09 23:15 ` Re: Can master and slave on different PG versions? David G. Johnston <david.g.johnston@gmail.com>
2017-11-08 16:17 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-15 21:23 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
@ 2017-11-16 16:58 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-17 15:43 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
0 siblings, 1 reply; 14+ messages in thread
From: rammohan ganapavarapu @ 2017-11-16 16:58 UTC (permalink / raw)
To: gparc@free.fr; pgsql-admin
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-09 23:15 ` Re: Can master and slave on different PG versions? David G. Johnston <david.g.johnston@gmail.com>
2017-11-08 16:17 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-15 21:23 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-16 16:58 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
@ 2017-11-17 15:43 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-20 18:24 ` Re: [ADMIN] Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
0 siblings, 1 reply; 14+ messages in thread
From: rammohan ganapavarapu @ 2017-11-17 15:43 UTC (permalink / raw)
To: gparc@free.fr; pgsql-admin
Hi,
I was using pg_basebackup to rebuild slave, so pglogical is not in-built in
postgres and I have to install?
Thanks
On Nov 17, 2017 12:42 AM, <gparc@free.fr> wrote:
Hello,
How did you create the slave ? with pg_basebackup or via rsync ?
In any case, the slave MUST have been built with a backup/rsync made AFTER
the master have been restarted when you changed
wal_level to logical.
Note, that you did so far, set wal_level=logical, is just a prerequisite to
use logical replication.
After that, you need a tool which will extract the changes in the WALs from
the master and will replay them on the slave.
Such tool is pg_logical : https://www.2ndquadrant.com/
en/resources/pglogical/
Regards
----- Mail original -----
De: "rammohan ganapavarapu" <rammohanganap@gmail.com>
À: gparc@free.fr, pgsql-admin@postgresql.org
Envoyé: Jeudi 16 Novembre 2017 17:58:42
Objet: Re: [ADMIN] Can master and slave on different PG versions?
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: [ADMIN] Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-09 23:15 ` Re: Can master and slave on different PG versions? David G. Johnston <david.g.johnston@gmail.com>
2017-11-08 16:17 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-15 21:23 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-16 16:58 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-17 15:43 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
@ 2017-11-20 18:24 ` rammohan ganapavarapu <rammohanganap@gmail.com>
0 siblings, 0 replies; 14+ messages in thread
From: rammohan ganapavarapu @ 2017-11-20 18:24 UTC (permalink / raw)
To: gparc@free.fr; pgsql-admin
Gilles,
Thank you, if we set wal_level in version <= 9.6 to "logical" what does it
mean what does it do? do we still call it as logical replication? also how
to tell if my replication is logical or physical. Please excuse me if i am
asking stupid questions :) i am new to Postgres.
Ram
On Mon, Nov 20, 2017 at 2:20 AM, <gparc@free.fr> wrote:
>
> Hello,
>
> yes, before postgres version 10, you must use an extension such as
> pg_logical
> to build logical replication between master and slave.
>
> For pg_logical, see the following links to help you start :
> https://www.2ndquadrant.com/en/resources/pglogical/pglogical-docs/
> http://bonesmoses.org/2016/10/14/pg-phriday-perfectly-logical/
> https://www.depesz.com/2016/11/08/major-version-upgrading-
> with-minimal-downtime/
>
> Regards
> Gilles
>
>
> ----- Mail original -----
> De: "rammohan ganapavarapu" <rammohanganap@gmail.com>
> À: gparc@free.fr, pgsql-admin@postgresql.org
> Envoyé: Vendredi 17 Novembre 2017 16:43:57
> Objet: Re: [ADMIN] Can master and slave on different PG versions?
>
>
>
> Hi,
>
>
> I was using pg_basebackup to rebuild slave, so pglogical is not in-built
> in postgres and I have to install?
>
>
> Thanks
>
>
>
> On Nov 17, 2017 12:42 AM, < gparc@free.fr > wrote:
>
>
>
> Hello,
>
> How did you create the slave ? with pg_basebackup or via rsync ?
> In any case, the slave MUST have been built with a backup/rsync made AFTER
> the master have been restarted when you changed
> wal_level to logical.
>
> Note, that you did so far, set wal_level=logical, is just a prerequisite
> to use logical replication.
> After that, you need a tool which will extract the changes in the WALs
> from the master and will replay them on the slave.
>
> Such tool is pg_logical : https://www.2ndquadrant.com/
> en/resources/pglogical/
>
>
> Regards
>
>
> ----- Mail original -----
> De: "rammohan ganapavarapu" < rammohanganap@gmail.com >
> À: gparc@free.fr , pgsql-admin@postgresql.org
> Envoyé: Jeudi 16 Novembre 2017 17:58:42
>
> Objet: Re: [ADMIN] Can master and slave on different PG versions?
>
>
> From Slave (9.6):
>
>
> Database cluster state: shut down in recovery
>
> wal_level setting: logical
>
>
>
> From master (9.4) :
>
>
> Database cluster state: in production
>
> Current wal_level setting: logical
>
>
>
> Quite frankly i couldn't find proper document on how to set logical
> replication in 9.4, i think i am using pg_logical. All i did was set
> wal_level to logical and add primary_slot_name in recovery.conf. Do i need
> to install pglogical extension? i couldn't find one for amazon linux.
>
>
>
>
>
>
> Thanks,
> Ram
>
>
> On Thu, Nov 16, 2017 at 6:12 AM, < gparc@free.fr > wrote:
>
>
>
> Hello again,
>
> can you execute pg_controldata command on both Master and Slave
> and check the following properties :
> Database cluster state
> wal_level setting
>
> Also, if I understand correctly, you want to establish logical replication
> between your 9.4 master
> and your 9.6 slave but you don't explain how ? using pg_logical ?
>
> Regards
>
> ----- Mail original -----
> De: "rammohan ganapavarapu" < rammohanganap@gmail.com >
> À: "David G. Johnston" < david.g.johnston@gmail.com >
> Cc: pgsql-admin@postgresql.org
> Envoyé: Mercredi 15 Novembre 2017 22:23:57
> Objet: Re: [ADMIN] Can master and slave on different PG versions?
>
>
>
>
> Any one tried this before?
>
>
> On Wed, Nov 8, 2017 at 8:17 AM, rammohan ganapavarapu <
> rammohanganap@gmail.com > wrote:
>
>
>
> David,
>
>
> So initially i have physical replication configured, so to upgrade slave
> to 9.6 version i did converted master slave to logical replication and then
> try to upgrade the slave to 9.6. I am getting this error when i try to
> start the slave. Any idea?
>
>
>
>
>
> 2017-11-08 05:08:49 UTC [20063]: [1-1] user= db= host= LOG: shutting down
> 2017-11-08 05:08:49 UTC [20063]: [2-1] user= db= host= LOG: database
> system is shut down
> 2017-11-08 05:09:45 UTC [20322]: [1-1] user= db= host= LOG: database
> system was shut down at 2017-11-08 05:08:55 UTC
> 2017-11-08 05:09:45 UTC [20322]: [2-1] user= db= host= LOG: entering
> standby mode
> 2017-11-08 05:09:45 UTC [20322]: [3-1] user= db= host= WARNING: WAL was
> generated with wal_level=minimal, data may be missing
> 2017-11-08 05:09:45 UTC [20322]: [4-1] user= db= host= HINT: This happens
> if you temporarily set wal_level=minimal without taking a new base backup.
> 2017-11-08 05:09:45 UTC [20322]: [5-1] user= db= host= FATAL: hot standby
> is not possible because wal_level was not set to "replica" or higher on the
> master server
> 2017-11-08 05:09:45 UTC [20322]: [6-1] user= db= host= HINT: Either set
> wal_level to "replica" on the master, or turn off hot_standby here.
> 2017-11-08 05:09:45 UTC [20312]: [3-1] user= db= host= LOG: startup
> process (PID 20322) exited with exit code 1
> 2017-11-08 05:09:45 UTC [20312]: [4-1] user= db= host= LOG: aborting
> startup due to startup process failure
> 2017-11-08 05:09:45 UTC [20312]: [5-1] user= db= host= LOG: database
> system is shut down
>
>
> Thanks,
> Ram
>
>
>
>
>
>
>
>
> On Mon, Oct 9, 2017 at 4:15 PM, David G. Johnston <
> david.g.johnston@gmail.com > wrote:
>
>
>
>
> On Mon, Oct 9, 2017 at 4:06 PM, rammohan ganapavarapu <
> rammohanganap@gmail.com > wrote:
>
>
>
>
>
> Hi,
>
>
> Is it possible to add 9.6 version Slave to 9.4 master?
>
>
>
>
> Physical replication, no; Logical replication, yes - if the software you
> are using is compatible with both versions.
>
>
> David J.
>
>
>
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
@ 2017-10-10 15:26 ` Scott Marlowe <scott.marlowe@gmail.com>
2017-10-10 15:49 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
1 sibling, 1 reply; 14+ messages in thread
From: Scott Marlowe @ 2017-10-10 15:26 UTC (permalink / raw)
To: rammohan ganapavarapu <rammohanganap@gmail.com>; +Cc: pgsql-admin
On Mon, Oct 9, 2017 at 5:06 PM, rammohan ganapavarapu
<rammohanganap@gmail.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.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-10 15:26 ` Re: Can master and slave on different PG versions? Scott Marlowe <scott.marlowe@gmail.com>
@ 2017-10-10 15:49 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-10 16:05 ` Re: Can master and slave on different PG versions? Scott Marlowe <scott.marlowe@gmail.com>
2017-10-11 02:10 ` Re: Can master and slave on different PG versions? Scott Mead <scottm@openscg.com>
0 siblings, 2 replies; 14+ messages in thread
From: rammohan ganapavarapu @ 2017-10-10 15:49 UTC (permalink / raw)
To: Scott Marlowe <scott.marlowe@gmail.com>; +Cc: pgsql-admin
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
On Tue, Oct 10, 2017 at 8:26 AM, Scott Marlowe <scott.marlowe@gmail.com>
wrote:
> On Mon, Oct 9, 2017 at 5:06 PM, rammohan ganapavarapu
> <rammohanganap@gmail.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.
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-10 15:26 ` Re: Can master and slave on different PG versions? Scott Marlowe <scott.marlowe@gmail.com>
2017-10-10 15:49 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
@ 2017-10-10 16:05 ` Scott Marlowe <scott.marlowe@gmail.com>
1 sibling, 0 replies; 14+ messages in thread
From: Scott Marlowe @ 2017-10-10 16:05 UTC (permalink / raw)
To: rammohan ganapavarapu <rammohanganap@gmail.com>; +Cc: pgsql-admin
On Tue, Oct 10, 2017 at 9:49 AM, rammohan ganapavarapu
<rammohanganap@gmail.com> wrote:
>
> On Tue, Oct 10, 2017 at 8:26 AM, Scott Marlowe <scott.marlowe@gmail.com>
> wrote:
>>
>> On Mon, Oct 9, 2017 at 5:06 PM, rammohan ganapavarapu
>> <rammohanganap@gmail.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.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Can master and slave on different PG versions?
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-10 15:26 ` Re: Can master and slave on different PG versions? Scott Marlowe <scott.marlowe@gmail.com>
2017-10-10 15:49 ` Re: Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
@ 2017-10-11 02:10 ` Scott Mead <scottm@openscg.com>
1 sibling, 0 replies; 14+ messages in thread
From: Scott Mead @ 2017-10-11 02:10 UTC (permalink / raw)
To: rammohan ganapavarapu <rammohanganap@gmail.com>; +Cc: Scott Marlowe <scott.marlowe@gmail.com>; pgsql-admin
> On Oct 10, 2017, at 11:49, rammohan ganapavarapu <rammohanganap@gmail.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.marlowe@gmail.com> wrote:
>> On Mon, Oct 9, 2017 at 5:06 PM, rammohan ganapavarapu
>> <rammohanganap@gmail.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.
>
^ permalink raw reply [nested|flat] 14+ messages in thread
end of thread, other threads:[~2017-11-20 18:24 UTC | newest]
Thread overview: 14+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-10-09 23:06 Can master and slave on different PG versions? rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-09 23:15 ` David G. Johnston <david.g.johnston@gmail.com>
2017-10-10 08:49 ` Ramesh <ramesh4f@gmail.com>
2017-11-08 16:17 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-09 07:45 ` Shreeyansh Dba <shreeyansh2014@gmail.com>
2017-11-09 16:22 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-15 21:23 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-16 16:58 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-17 15:43 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2017-11-20 18:24 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-10 15:26 ` Scott Marlowe <scott.marlowe@gmail.com>
2017-10-10 15:49 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2017-10-10 16:05 ` Scott Marlowe <scott.marlowe@gmail.com>
2017-10-11 02:10 ` Scott Mead <scottm@openscg.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox