From: Gaetano Mendola <mendola@bigfoot.com>
To: Jeff Eckermann <jeff_eckermann@yahoo.com>
Subject: Re: How to check postgres running or not ?
Date: Sun, 19 Sep 2004 23:01:01 +0200
Message-ID: <414DF38D.2040307@bigfoot.com> (raw)
In-Reply-To: <20040919160818.58480.qmail@web20825.mail.yahoo.com>
References: <m3r7ozqysw.fsf@wolfe.cbbrowne.com>
<20040919160818.58480.qmail@web20825.mail.yahoo.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mendola@bigfoot.com, jeff_eckermann@yahoo.com
Subject: Re: How to check postgres running or not ?
In-Reply-To: <414DF38D.2040307@bigfoot.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox