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 180E4329E43 for ; Sat, 18 Sep 2004 19:37:51 +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 87329-06 for ; Sat, 18 Sep 2004 18:37:45 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 1B3DA329E60 for ; Sat, 18 Sep 2004 19:37:46 +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 i8IIbjCn091247 for ; Sat, 18 Sep 2004 18:37:45 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i8IIalqY091106 for pgsql-sql@postgresql.org; Sat, 18 Sep 2004 18:36:47 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.sql Subject: Re: How to check postgres running or not ? Date: Sat, 18 Sep 2004 20:36:47 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 17 Message-ID: References: <414A7395.8070503@vertex.co.in> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en In-Reply-To: <414A7395.8070503@vertex.co.in> 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/124 X-Sequence-Number: 18970 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