Skip site navigation (1) Skip section navigation (2)

Re: How to check postgres running or not ?

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: Jeff Eckermann <jeff_eckermann(at)yahoo(dot)com>
Subject: Re: How to check postgres running or not ?
Date: 2004-09-19 21:01:01
Message-ID: 414DF38D.2040307@bigfoot.com (view raw or flat)
Thread:
Lists: pgsql-sql
Jeff Eckermann wrote:
> --- Christopher Browne <cbbrowne(at)acm(dot)org> wrote:
> 
> 
>>In an attempt to throw the authorities off his
>>trail, sgaikwad(at)vertex(dot)co(dot)in ("Sandeep Gaikwad")
>>transmitted:
>>
>>>Hello Sir,
>>>                I want to know how to check
>>
>>whether postgres database
>>
>>>is running or not ? when  I give command like
>>
>>./postmaster -i &,
>>
>>>whether all databases in that postgres will run or
>>
>>any one [default] ? 
>>
>>>If any one, then how to detect that database ?
> 
> 
> The "standard" way would be "pg_ctl status".  "man
> pg_ctl" is recommended reading for anyone
> administering a PostgreSQL setup.

Is not enough because it check only for the postmaster.pid
and not if the engine is really up.



Regards
Gaetano Mendola



In response to

pgsql-sql by date

Next:From: Andrew SullivanDate: 2004-09-20 00:20:54
Subject: Re: How to check postgres running or not ?
Previous:From: Gaetano MendolaDate: 2004-09-19 20:57:57
Subject: Re: How to check postgres running or not ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group