Re: Determine if postgresql cluster running is primary or not
От
Thomas Kellerer
Тема
Re: Determine if postgresql cluster running is primary or not
Дата
Msg-id
f09b2f94-d9a5-473c-d726-7e1aa53a7e94@gmx.net
Ответ на
Список
Дерево обсуждения
Determine if postgresql cluster running is primary or not Raul Kaubi <raulkaubi@gmail.com>
Re: Determine if postgresql cluster running is primary or not Thomas Kellerer <shammat@gmx.net>
Re: Determine if postgresql cluster running is primary or not Paul Förster <paul.foerster@gmail.com>
Re: Determine if postgresql cluster running is primary or not "David G. Johnston" <david.g.johnston@gmail.com>
Re: Determine if postgresql cluster running is primary or not Paul Förster <paul.foerster@gmail.com>
Re: Determine if postgresql cluster running is primary or not "David G. Johnston" <david.g.johnston@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 Paul Förster <paul.foerster@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 Paul Förster <paul.foerster@gmail.com>
Re: Determine if postgresql cluster running is primary or not Raul Kaubi <raulkaubi@gmail.com>
Raul Kaubi schrieb am 20.11.2020 um 09:53: > CentOS 7 > Postgres 9 to 12 > > For monitoring purpose, I would like that certain scripts are only run in primary server. > So I am looking ways to universally discover if postgresql cluster that is running is primary or not. As the standby will be in constant recovery, you can use select pg_is_in_recovery();
В списке pgsql-general по дате отправления
От: Paul Förster
Дата: