Master ip from hot_standby..

Started by sudalaiabout 11 years ago2 messages
#1sudalai
sudalait2@gmail.com

Hi,
I need to query master ip from hot_standby.
*pg_stat_replication* view only shows the slave replication status.

Is there any way to get *Master IP* from standby node apart from checking
*recovery.conf* file.

Thanks,
Sudalai

-----
sudalai
--
View this message in context: http://postgresql.1045698.n5.nabble.com/Master-ip-from-hot-standby-tp5824415.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#2Michael Paquier
michael.paquier@gmail.com
In reply to: sudalai (#1)
Re: Master ip from hot_standby..

On Mon, Oct 27, 2014 at 8:15 PM, sudalai <sudalait2@gmail.com> wrote:

I need to query master ip from hot_standby.
*pg_stat_replication* view only shows the slave replication status.

Is there any way to get *Master IP* from standby node apart from checking
*recovery.conf* file.

That's the way to go as it is in primary_conninfo. Recovery parameters
are only loaded by the startup process after reading it from
recovery.conf.

Note that this would be more a question for pgsql-general or
pgsql-novice but surely not hackers.
--
Michael

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers