How to find out if the server is postgres slave ??

From: expertalert <expertalert(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: How to find out if the server is postgres slave ??
Date: 2012-11-01 22:06:01
Message-ID: 1351807561445-5730418.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2012-11-01 22:15:51 Re: Where is 'createdb'?
Previous Message Chris Angelico 2012-11-01 22:03:38 Re: role does not exist