Re: How to check postgres running or not ?
| От | Gaetano Mendola |
|---|---|
| Тема | Re: How to check postgres running or not ? |
| Дата | |
| Msg-id | 414DF38D.2040307@bigfoot.com обсуждение исходный текст |
| Ответ на | Re: How to check postgres running or not ? (Jeff Eckermann <jeff_eckermann@yahoo.com>) |
| Список | 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 по дате отправления: