X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 239FF329E6A for ; Sun, 19 Sep 2004 22:14:03 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12201-05 for ; Sun, 19 Sep 2004 21:13:57 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 7B5EE329E68 for ; Sun, 19 Sep 2004 22:13:56 +0100 (BST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i8JLDrfg013960 for ; Sun, 19 Sep 2004 21:13:53 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i8JL14Wh011240 for pgsql-sql@postgresql.org; Sun, 19 Sep 2004 21:01:04 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.sql Subject: Re: How to check postgres running or not ? Date: Sun, 19 Sep 2004 23:01:01 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 37 Message-ID: <414DF38D.2040307@bigfoot.com> References: <20040919160818.58480.qmail@web20825.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr To: Jeff Eckermann User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en In-Reply-To: <20040919160818.58480.qmail@web20825.mail.yahoo.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/142 X-Sequence-Number: 18988 Jeff Eckermann wrote: > --- Christopher Browne 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