Re: Determine if postgresql cluster running is primary or not

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Determine if postgresql cluster running is primary or not
Дата
Msg-id CAKFQuwbWCe+sQhR+Xg9Rz3Eh-0kTYD3x4+Tx9paAFntcNKeRLA@mail.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  (Paul Förster <paul.foerster@gmail.com>)
Список pgsql-general

On Friday, November 20, 2020, Paul Förster <paul.foerster@gmail.com> wrote:

> On 20. Nov, 2020, at 10:03, Thomas Kellerer <shammat@gmx.net> wrote:

>
>   select pg_is_in_recovery();

I usually don't recommend using pg_is_in_recovery() only because a database cluster can be in recovery for other reasons. This is why I always do the following:

Do any of those other reasons allow connections that could execute that function to exist?

David J.
 

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

Предыдущее
От: Paul Förster
Дата:
Сообщение: Re: Determine if postgresql cluster running is primary or not
Следующее
От: "Zwettler Markus (OIZ)"
Дата:
Сообщение: AW: Linux package upgrade without dependency conflicts