Re: How to find the primary server of a hot standby server?

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Rudolf van der Leeden <vanderleeden(at)logicunited(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to find the primary server of a hot standby server?
Date: 2010-10-14 22:39:51
Message-ID: 4CB786B7.7080700@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Le 14/10/2010 23:18, Rudolf van der Leeden a écrit :
> [...]
> quick question to the PG 9 community.
>
> I can query a hot standby server if recovery is still active using
> the administration function pg_is_in_recovery(). Is there also a way
> to query for the 'primary server', i.e. which server is delivering
> the WAL records?
>
> I'd like to monitor a bunch of standby servers in terms of
> configuration and operation.
>

There's no "SQL" way to know this, AFAICT. But I would love to be proven
wrong: I would be able to add this info to pgAdmin, which would be great.

--
Guillaume
http://www.postgresql.fr
http://dalibo.com

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Pierre C 2010-10-14 22:50:20 Re: oracle to psql migration - slow query in postgres
Previous Message Cédric Villemain 2010-10-14 21:25:41 Re: oracle to psql migration - slow query in postgres