Re: Determine if postgresql cluster running is primary or not - Mailing list pgsql-general

From Paul Förster
Subject Re: Determine if postgresql cluster running is primary or not
Date
Msg-id 49797E6F-74C6-4DE9-81F8-30BD1B37732E@gmail.com
Whole thread Raw
In response to Re: Determine if postgresql cluster running is primary or not  (Raul Kaubi <raulkaubi@gmail.com>)
Responses Re: Determine if postgresql cluster running is primary or not  (Raul Kaubi <raulkaubi@gmail.com>)
List pgsql-general
Hi Raul,

> On 20. Nov, 2020, at 11:45, Raul Kaubi <raulkaubi@gmail.com> wrote:
>
> Hmm, ok.
>
> But how is this possible..?
>
>  when b.sender>0 and c.receiver>0 then
>             'Primary+Replica'
>
> Raul

this happens for example if you have a primary a and replica b running as a normal cluster (we use Patroni for
automaticfailover) and then add another replica c to the existing replica b, effectively replicating: a => b => c In
thiscase, b would be the replica of a, but also be the primary for c. 

It's called cascading replication.

Cheers,
Paul


pgsql-general by date:

Previous
From: Raul Kaubi
Date:
Subject: Re: Determine if postgresql cluster running is primary or not
Next
From: Raul Kaubi
Date:
Subject: Re: Determine if postgresql cluster running is primary or not