Re: Determine if postgresql cluster running is primary or not

From: Raul Kaubi <raulkaubi(at)gmail(dot)com>
To: Paul Förster <paul(dot)foerster(at)gmail(dot)com>
Cc: Thomas Kellerer <shammat(at)gmx(dot)net>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Determine if postgresql cluster running is primary or not
Date: 2020-11-20 11:00:45
Message-ID: CAO_+3-DLkSM=1WN2=Hy8NRfCA=tbjH9uSPN-94CLwh4J06xNow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ok, Thanks!

Raul

Kontakt Paul Förster (<paul(dot)foerster(at)gmail(dot)com>) kirjutas kuupäeval R, 20.
november 2020 kell 12:54:

> Hi Raul,
>
> > On 20. Nov, 2020, at 11:45, Raul Kaubi <raulkaubi(at)gmail(dot)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 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2020-11-20 11:31:42 Re: Set COLLATE on a session level
Previous Message Paul Förster 2020-11-20 10:54:35 Re: Determine if postgresql cluster running is primary or not