query replication status when WAL-E is used

Поиск
Список
Период
Сортировка
От Valery Sizov
Тема query replication status when WAL-E is used
Дата
Msg-id CAK=zUS3LrYPUL1i_iYgQoLD-2YRzLoLOS=2xzmhG6FL3etMH9Q@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
Hi all,

I need to have a way to query a streaming replication status from the client (Web app), on a secondary node.  It can be easily done now by performing a query "select pid, status from pg_stat_wal_receiver". The problem is that sometimes we need to use WAL-E replication and in this case, it's impossible to get the status using SQL command. As WAL-E essentially uses archive_command/restore_command, I would like to be able to see the content of the restore_command in recovery.conf file using SQL command. Keep in mind that I CAN see the archive_command value by using whether "SELECT ALL" or "SELECT * FROM pg_settings"
What do you think?

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG: Incorrect working with POSIX locale if database in UTF-8 encoding
Следующее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: convert real to numeric.