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

From: Magnus Rolf <magnus(dot)rolf(at)outlook(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>, Alvaro Aguayo <aaguayo(at)opensysperu(dot)com>
Cc: 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>, Ashish Chugh <ashish(dot)chugh(at)lavainternational(dot)in>
Subject: Re: PostgreSQL Replication between Different Major Version (11-13)
Date: 2021-12-29 16:00:24
Message-ID: DBBPR03MB67960655151BF9CA2833E88FE6449@DBBPR03MB6796.eurprd03.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Just use the build in logical replication of PostgreSQL. It works perfectly between PG v-11 and PG v-13.
Only requirement is each table must have a primary key to assure data object consistency and integrity.
Tables which are not updated by client tool (archive tables) might be migrated by using normal pgdump/psql or pg_restore.

Magnus Rolf

Outlook voor Android downloaden<https://aka.ms/ghei36>
________________________________
From: Magnus Hagander <magnus(at)hagander(dot)net>
Sent: Wednesday, December 29, 2021 2:27:36 PM
To: Alvaro Aguayo <aaguayo(at)opensysperu(dot)com>
Cc: 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>; Ashish Chugh <ashish(dot)chugh(at)lavainternational(dot)in>
Subject: Re: PostgreSQL Replication between Different Major Version (11-13)

On Wed, Dec 29, 2021 at 1:47 PM Alvaro Aguayo <aaguayo(at)opensysperu(dot)com> wrote:
>
> Hi.
>
>
>
> Not with PostgreSQL itself, but you can achieve that with pglogical: https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.2ndquadrant.com%2Fen%2Fresources-old%2Fpglogical%2F&amp;data=04%7C01%7C%7C96bf1d76cf834c68d2a008d9cacf0b82%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637763812856863122%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=0BLJG2KtahzHLz%2BN1OywxZfddiQuEPJkHZdl84htDOI%3D&amp;reserved=0

Sure, you can do that with PostgreSQL itself as well, with logical
replication, as of version 10. It has the same caveats as with
pglogical, but the basic functionality is there.

You cannot do it with *physical* replication, that's still true.

--
Magnus Hagander
Me: https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.hagander.net%2F&amp;data=04%7C01%7C%7C96bf1d76cf834c68d2a008d9cacf0b82%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637763812856863122%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=0XTfuZVDL67iuBdow8awywhdvtSgRGC%2FhvGmopcerk0%3D&amp;reserved=0
Work: https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.redpill-linpro.com%2F&amp;data=04%7C01%7C%7C96bf1d76cf834c68d2a008d9cacf0b82%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637763812856863122%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=mQta930fhAvHwFz3OyzvLOfJknayamNoUwPj%2FCFj6cU%3D&amp;reserved=0

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Ribe 2021-12-29 17:00:06 Re: PostgreSQL Replication between Different Major Version (11-13)
Previous Message Joseph Hammerman 2021-12-29 15:16:44 Triaging pg_ctl shutdown hang