Replication between Master PostgreSQL database version 9.6.1 and Standby/Slave PostgreSQL database version 10.17.

Started by Kaushal Shriyanover 3 years ago4 messagesgeneral
Jump to latest
#1Kaushal Shriyan
kaushalshriyan@gmail.com

Hi,

Is replication possible between PostgreSQL support Master database
running 9.6.1 version which is a lower version to Standby/Slave running
version 10.17?

I have a datacenter *DC1* which is a production environment and serves live
customer traffic hosting Master PostgreSQL database version *9.6.1* and
Standby/Slave PostgreSQL database version *9.6.1* for storing analytics
data. I am adding the new datacenter *DC2* by referring to
https://docs.apigee.com/private-cloud/v4.51.00/adding-data-center?hl=en
which will install *another additional* *Standby/Slave PostgreSQL database
version* *10.17*.

More details :- https://docs.apigee.com/release/supported-software

Please guide me. Thanks in advance.

Best Regards,

Kaushal

#2Christophe Pettus
xof@thebuild.com
In reply to: Kaushal Shriyan (#1)
Re: Replication between Master PostgreSQL database version 9.6.1 and Standby/Slave PostgreSQL database version 10.17.

On Oct 5, 2022, at 09:32, Kaushal Shriyan <kaushalshriyan@gmail.com> wrote:

Hi,

Is replication possible between PostgreSQL support Master database running 9.6.1 version which is a lower version to Standby/Slave running version 10.17?

Binary replication is not possible between different major versions. You can do logical replication, using the pglogical extension:

https://github.com/2ndQuadrant/pglogical

(Although not directly related, do note that 9.6 has been past end-of-life for nearly a year, and version 10 will reach end-of-life in November of this year. 10.17 is over a year old, and 9.6.1 is almost six years old; the most recent versions of each are 10.22 and 9.6.24.)

#3Kaushal Shriyan
kaushalshriyan@gmail.com
In reply to: Christophe Pettus (#2)
Re: Replication between Master PostgreSQL database version 9.6.1 and Standby/Slave PostgreSQL database version 10.17.

Thanks Christophe for the email and appreciate it. I am not sure if I
understand the difference between binary and logical replication
between PostgreSQL Master and Standby/Slave server.

Please guide me. Thanks in advance.

Best Regards,

Kaushal

On Wed, Oct 5, 2022 at 11:02 PM Christophe Pettus <xof@thebuild.com> wrote:

Show quoted text

On Oct 5, 2022, at 09:32, Kaushal Shriyan <kaushalshriyan@gmail.com>

wrote:

Hi,

Is replication possible between PostgreSQL support Master database

running 9.6.1 version which is a lower version to Standby/Slave running
version 10.17?

Binary replication is not possible between different major versions. You
can do logical replication, using the pglogical extension:

https://github.com/2ndQuadrant/pglogical

(Although not directly related, do note that 9.6 has been past end-of-life
for nearly a year, and version 10 will reach end-of-life in November of
this year. 10.17 is over a year old, and 9.6.1 is almost six years old;
the most recent versions of each are 10.22 and 9.6.24.)

#4Christophe Pettus
xof@thebuild.com
In reply to: Kaushal Shriyan (#3)
Re: Replication between Master PostgreSQL database version 9.6.1 and Standby/Slave PostgreSQL database version 10.17.

On Oct 6, 2022, at 10:20, Kaushal Shriyan <kaushalshriyan@gmail.com> wrote:

I am not sure if I understand the difference between binary and logical replication between PostgreSQL Master and Standby/Slave server.

It's best to review the documentation here:

https://www.postgresql.org/docs/10/logical-replication.html

Best,
-- Christophe