Checking replication slave state

Поиск
Список
Период
Сортировка
От Mario Splivalo
Тема Checking replication slave state
Дата
Msg-id 52D95689.7070101@splivalo.hr
обсуждение исходный текст
Ответы Re: Checking replication slave state  (Steve Crawford <scrawford@pinpointresearch.com>)
Список pgsql-admin
Hello.

What would be the preferred/best way to check replication state of a slave?

When I fire up slave, it can either be in 'can not connect to master'
state, it can be in 'catching up' state, or it can be in 'streaming' state.

I can check what pg_is_in_recovery() function returns, but this will
return true regardless of weather server is catching up, failing to
catch up or is in streaming replication with the master.

Is there a way, other then checking the logs, to verify that?

    Mario


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

Предыдущее
От: Bernhard Schrader
Дата:
Сообщение: clog problems after dump/restore
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: Checking replication slave state