From: | dinesh kumar <dineshkumar02(at)gmail(dot)com> |
---|---|
To: | expertalert <expertalert(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to find out if the server is postgres slave ?? |
Date: | 2012-11-02 12:33:38 |
Message-ID: | CALnrH7qtSTQ3EWw=0==BL1Ynz2Wpp6g_t9WmumHNgEzV53zh1w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi ,
We can use pg_is_in_recovery() command to check whether the server is in
recovery or not.
I believe, we can get this information from pg_controldata's "database
cluster state" as well.
Best Regards,
Dinesh
manojadinesh.blogspot.com
On Fri, Nov 2, 2012 at 3:36 AM, expertalert <expertalert(at)gmail(dot)com> wrote:
>
> From command line, is there any way to find out if the server is actually a
> slave server not master ??
>
> I am writing some script, so for sanity check purpose , i need to know if
> the server the server i am on , its actually slave
>
> thanks for your help.
>
>
>
>
>
> --
> View this message in context:
> http://postgresql.1045698.n5.nabble.com/How-to-find-out-if-the-server-is-postgres-slave-tp5730418.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Angelico | 2012-11-02 13:17:37 | Re: How to find out if the server is postgres slave ?? |
Previous Message | dinesh kumar | 2012-11-02 12:26:56 | Re: Postgresql - 8.3 Replication in windows |