Re: How to check postgres running or not ? - Mailing list pgsql-sql

From Gaetano Mendola
Subject Re: How to check postgres running or not ?
Date
Msg-id 414DF38D.2040307@bigfoot.com
Whole thread Raw
In response to Re: How to check postgres running or not ?  (Jeff Eckermann <jeff_eckermann@yahoo.com>)
List pgsql-sql
Jeff Eckermann wrote:
> --- Christopher Browne <cbbrowne@acm.org> wrote:
> 
> 
>>In an attempt to throw the authorities off his
>>trail, sgaikwad@vertex.co.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




pgsql-sql by date:

Previous
From: T E Schmitz
Date:
Subject: Re: ORDER BY and NULLs
Next
From: Gaetano Mendola
Date:
Subject: Re: How to check postgres running or not ?