Re: pg_primary_conninfo - Mailing list pgsql-hackers

From Guillaume Lelarge
Subject Re: pg_primary_conninfo
Date
Msg-id 4D1A10BE.6030607@lelarge.info
Whole thread Raw
In response to Re: pg_primary_conninfo  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_primary_conninfo  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump --split patch
Next
From: Tom Lane
Date:
Subject: Re: pg_primary_conninfo