Re: Create a logical and physical replication

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: ashokt(at)ohumhealthcare(dot)com
Cc: rui(at)crazybean(dot)net, brightuser2019(at)gmail(dot)com, pgsql-general(at)lists(dot)postgresql(dot)org, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Create a logical and physical replication
Date: 2019-11-05 05:54:41
Message-ID: 20191105.145441.1121905199858654119.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Hello.

At Mon, 4 Nov 2019 19:05:24 +0530, Ashok Kumar Tiwari <ashokt(at)ohumhealthcare(dot)com> wrote in
> is it possible in postgres to create one physical replica for DR(data
> recovery purpose) and another one logical replica for reporting purpose

A physical replication standby cannot be a publisher. You will find
that CREATE PUBLICATION fails.

> master --------> physical standby (for DR Purpose)
> |
> |
> |
> |
> logical replica for reporting purpose
>
> ------------------ or cascading logic replication
>
> master --------> physical standby (for DR Purpose) ------------- >
> logical replica for reporting purpose

The former works (as documented in [1]) but the latter doesn't.

By the way, If I'm not missing anything I don't find a description on
this restriction in the documentation. Shouldn't it be in [2], or
[1]?

[1]: https://www.postgresql.org/docs/12/logical-replication.html
[2]: https://www.postgresql.org/docs/12/logical-replication-restrictions.html

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ashok Kumar Tiwari 2019-11-05 11:12:45 Re: Create a logical and physical replication
Previous Message Ashok Kumar Tiwari 2019-11-04 13:35:24 Create a logical and physical replication

Browse pgsql-general by date

  From Date Subject
Next Message Ashok Kumar Tiwari 2019-11-05 11:12:45 Re: Create a logical and physical replication
Previous Message David Rowley 2019-11-05 01:29:00 Re: select view definition from pg_views feature request