TODO: replica information functions

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема TODO: replica information functions
Дата
Msg-id 55B7CB88.5080604@agliodbs.com
обсуждение исходный текст
Ответы Re: TODO: replica information functions  (Andres Freund <andres@anarazel.de>)
Re: TODO: replica information functions  (Evgeniy Shishkin <itparanoia@gmail.com>)
Re: TODO: replica information functions  (Euler Taveira <euler@timbira.com.br>)
Список pgsql-hackers
Hackers,

Since merging recovery.conf with postgresql.conf is apparently off the
table indefinitely, we could really use some additional information
functions which work on the replica.  Here's my list of what I need for
failover automation:

pg_standby_is_streaming()returns true if the standby is configured for streaming andis currently connected with the
master.returnsfalse if the connection to the master is broken,of if there is no primary_conninfo
 

pg_standby_conninfo()returns connection string to master.  Superuser-only forpreviously discussed reasons

pg_recovery_config(config_item TEXT)returns the specified configuration item from recovery.confsuperuser-only?

Does this make sense?  Is there other information we need?

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: A little RLS oversight?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: TODO: replica information functions