Re: Detecting master/slave

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Detecting master/slave
Дата
Msg-id m4nhmf$e5t$1@ger.gmane.org
обсуждение исходный текст
Ответ на Detecting master/slave  (Steve Pribyl <Steve.Pribyl@akunacapital.com>)
Список pgsql-general
Steve Pribyl schrieb am 21.11.2014 um 15:13:
> Is there a better/recommended way to determine which host in a
> cluster is the master or slave besides rescue.conf or
> pg_stat_replication?
>
> Just looking for the "right" way to know which
> host is which.

What about

  select pg_is_in_recovery()

should return true on the slave and false on the master.


В списке pgsql-general по дате отправления:

Предыдущее
От: Nitesh Gupta
Дата:
Сообщение: Re: Detecting master/slave
Следующее
От: Sameer Kumar
Дата:
Сообщение: Re: Detecting master/slave