Lists: | pgsql-hackers |
---|
From: | sudalai <sudalait2(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Master ip from hot_standby.. |
Date: | 2014-10-27 11:15:41 |
Message-ID: | 1414408541342-5824415.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
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.
From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | sudalai <sudalait2(at)gmail(dot)com> |
Cc: | PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Master ip from hot_standby.. |
Date: | 2014-10-27 13:09:48 |
Message-ID: | CAB7nPqSp1R4iXyDLAXtTjpSdRs-XzLbqdjcwonn6nomaV0d7-g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Mon, Oct 27, 2014 at 8:15 PM, sudalai <sudalait2(at)gmail(dot)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