RE: PostgreSQL Replication between Different Major Version (11-13)

From: Alvaro Aguayo <aaguayo(at)opensysperu(dot)com>
To: Ram Pratap Maurya <ram(dot)maurya(at)lavainternational(dot)in>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Cc: "Ashish Chugh" <ashish(dot)chugh(at)lavainternational(dot)in>
Subject: RE: PostgreSQL Replication between Different Major Version (11-13)
Date: 2021-12-29 12:47:01
Message-ID: SC1P15201MB223863798D1E8B1529034091AF449@SC1P15201MB2238.LAMP152.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi.

Not with PostgreSQL itself, but you can achieve that with pglogical: https://www.2ndquadrant.com/en/resources-old/pglogical/

It supports replication across different versions. One of its intended usages is version migration with minimal (almost zero) downtime.

But please note that it won’t create a read only replica: The replica will always be writable. You should look for some way to restrict writing, via triggers or permissions, if you really want the replica to be read only.

Regards,

Alvaro Aguayo
Operations Manager
Jr. Prolongación Ayacucho 177 Urb. Santa Eulalia - San Miguel
Telf. (+51-1) 680-5726
E-mail: aaguayo(at)ocs(dot)pe

From: Ram Pratap Maurya <ram(dot)maurya(at)lavainternational(dot)in>
Sent: 29 December 2021 07:31
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Cc: Ashish Chugh <ashish(dot)chugh(at)lavainternational(dot)in>
Subject: PostgreSQL Replication between Different Major Version (11-13)

Hi Support,

We would like to perform PostgreSQL Replication between Different Major Version to avoid database upgrade. Scenario is as follows.

1. PostgreSQL Replication from PostgreSQL Version 11 To PostgreSQL Version 13.
2. Want to Setup Production Read Only Replication from Primary (11 Version) To Secondary (13 Version)

We want to perform above activity to avoid Database Upgrade. Please let us know if this is possible to setup Replication between Different Major Version (11-13).

Regards,
Ram Pratap.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Adarsh Sharma 2021-12-29 12:58:58 Re: PostgreSQL Replication between Different Major Version (11-13)
Previous Message Ram Pratap Maurya 2021-12-29 12:30:57 PostgreSQL Replication between Different Major Version (11-13)