Search Postgresql Archives

Re: Determine if postgresql cluster running is primary or not

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Raul,

> On 20. Nov, 2020, at 11:45, Raul Kaubi <raulkaubi@xxxxxxxxx> 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 automatic failover) and then add another replica c to the existing replica b, effectively replicating: a => b => c In this case, b would be the replica of a, but also be the primary for c.

It's called cascading replication.

Cheers,
Paul





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux