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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Sullivan | 2004-09-20 00:20:54 | Re: How to check postgres running or not ? |
Previous Message | Gaetano Mendola | 2004-09-19 20:57:57 | Re: How to check postgres running or not ? |