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
From: Magnus Hagander <magnus@xxxxxxxxxxxx>
Sent: Wednesday, December 29, 2021 2:27:36 PM
To: Alvaro Aguayo <aaguayo@xxxxxxxxxxxxxxx>
Cc: Ram Pratap Maurya <ram.maurya@xxxxxxxxxxxxxxxxxxxx>; pgsql-admin@xxxxxxxxxxxxxxxxxxxx <pgsql-admin@xxxxxxxxxxxxxxxxxxxx>; Ashish Chugh <ashish.chugh@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: PostgreSQL Replication between Different Major Version (11-13)
Sent: Wednesday, December 29, 2021 2:27:36 PM
To: Alvaro Aguayo <aaguayo@xxxxxxxxxxxxxxx>
Cc: Ram Pratap Maurya <ram.maurya@xxxxxxxxxxxxxxxxxxxx>; pgsql-admin@xxxxxxxxxxxxxxxxxxxx <pgsql-admin@xxxxxxxxxxxxxxxxxxxx>; Ashish Chugh <ashish.chugh@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: PostgreSQL Replication between Different Major Version (11-13)
On Wed, Dec 29, 2021 at 1:47 PM Alvaro Aguayo <aaguayo@xxxxxxxxxxxxxxx> wrote:
>
> Hi.
>
>
>
> Not with PostgreSQL itself, but you can achieve that with pglogical: https://emea01.safelinks.protection.outlook.com/?url="">
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="">
Work: https://emea01.safelinks.protection.outlook.com/?url="">
>
> Hi.
>
>
>
> Not with PostgreSQL itself, but you can achieve that with pglogical: https://emea01.safelinks.protection.outlook.com/?url="">
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="">
Work: https://emea01.safelinks.protection.outlook.com/?url="">