Re: Determine if postgresql cluster running is primary or not

Поиск
Список
Период
Сортировка
От Paul Förster
Тема Re: Determine if postgresql cluster running is primary or not
Дата
Msg-id 49797E6F-74C6-4DE9-81F8-30BD1B37732E@gmail.com
обсуждение исходный текст
Ответ на Re: Determine if postgresql cluster running is primary or not  (Raul Kaubi <raulkaubi@gmail.com>)
Ответы Re: Determine if postgresql cluster running is primary or not  (Raul Kaubi <raulkaubi@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Raul Kaubi
Дата:
Сообщение: Re: Determine if postgresql cluster running is primary or not
Следующее
От: Raul Kaubi
Дата:
Сообщение: Re: Determine if postgresql cluster running is primary or not