Re: How to find out if the server is postgres slave ??
От | dinesh kumar |
---|---|
Тема | Re: How to find out if the server is postgres slave ?? |
Дата | |
Msg-id | CALnrH7qtSTQ3EWw=0==BL1Ynz2Wpp6g_t9WmumHNgEzV53zh1w@mail.gmail.com обсуждение исходный текст |
Ответ на | How to find out if the server is postgres slave ?? (expertalert <expertalert@gmail.com>) |
Список | 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.
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@gmail.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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
В списке pgsql-general по дате отправления: