Re: pg_primary_conninfo

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: pg_primary_conninfo
Дата
Msg-id 4D1A1809.2050408@lelarge.info
обсуждение исходный текст
Ответ на Re: pg_primary_conninfo  (Gurjeet Singh <singh.gurjeet@gmail.com>)
Список pgsql-hackers
Le 28/12/2010 17:50, Gurjeet Singh a écrit :
> On Tue, Dec 28, 2010 at 11:36 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
>>
>> I can see the point of, say, a primary_host_address() function returning
>> inet, which would be way better on both those dimensions than the
>> current proposal.  But I'm not sure what else would be needed.
>>
>>
> +1, since it bypasses security risks associated with exposing
> username/password.
> 
> Ability to see port number will be a useful addition.
> 
> Another case to consider is what if slave is connected to a local server
> over unix-domain sockets? Returning NULL might make it ambiguous with the
> case where the instance has been promoted out of standby.
> 

The host should be the socket file path.


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


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

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: knngist - 0.8
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Patch to add table function support to PL/Tcl (Todo item)