Re: pg_primary_conninfo

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: pg_primary_conninfo
Дата
Msg-id 4D1A10BE.6030607@lelarge.info
обсуждение исходный текст
Ответ на Re: pg_primary_conninfo  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_primary_conninfo  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Le 28/12/2010 16:34, Tom Lane a écrit :
> Magnus Hagander <magnus@hagander.net> writes:
>> On Dec 28, 2010 3:58 PM, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
>>> What's the use case?  And aren't there security reasons to NOT expose
>>> that?  It might contain a password for instance.
> 
>> Good point - should be made superuser only.
> 
> I'm still wondering what's the actual use-case for exposing this inside
> SQL.  Those with a legitimate need-to-know can look at the slave
> server's config files, no?
> 

This is something I wanted to have in 9.0 when I coded in pgAdmin some
features related to the HotStandby. Knowing on which IP is the master
can help pgAdmin offer the user to register the master node.

It's also interesting to get lag between master and slave. As soon as
I'm connected to a slave, I can connect to the master and get the lag
between them. Something I can't do right now in pgAdmin.


-- 
Guillaumehttp://www.postgresql.frhttp://dalibo.com


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump --split patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_primary_conninfo