How to reliably detect if it's a promoting standby

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема How to reliably detect if it's a promoting standby
Дата
Msg-id 20101013.211105.796540243496490636.t-ishii@sraoss.co.jp
обсуждение исходный текст
Ответы Re: How to reliably detect if it's a promoting standby  (Tatsuo Ishii <ishii@postgresql.org>)
Список pgsql-hackers
Hi,

I'm looking for a way to reliably detect if it's a promoting
standby. This is neccessary for pgpool-II manage streaming replication
clusters. When primary goes down, standby *could* start promoting to
primary. The only way to find it is calling
pg_is_in_recovery(). Problem is, it returns true even if standby is
promoting. If pgpool-II waits for cetain period, it may finishes
promotion, thus it returns false. But how long should we wait?

Any idea?
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: WIP: extensible enums
Следующее
От: Jan Otto
Дата:
Сообщение: Re: ISN patch that applies cleanly with git apply