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 cihv80$mb2$1@floppy.pyrenet.fr
Whole thread Raw
In response to How to check postgres running or not ?  ("Sandeep Gaikwad" <sgaikwad@vertex.co.in>)
List pgsql-sql
Sandeep Gaikwad wrote:
> 
> 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 ?

Well, in the $DATADIR you habe postmaster.pid that contains the supposed pid...




Regards
Gaetano Mendola




pgsql-sql by date:

Previous
From: Christopher Browne
Date:
Subject: Re: How to check postgres running or not ?
Next
From: Worik
Date:
Subject: Re: How to check postgres running or not ?