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 EA539329D76 for ; Mon, 20 Sep 2004 12:47:15 +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 07588-05 for ; Mon, 20 Sep 2004 11:47:08 +0000 (GMT) Received: from curie.credativ.org (credativ.com [217.160.209.18]) by svr1.postgresql.org (Postfix) with ESMTP id B313E329D3C for ; Mon, 20 Sep 2004 12:47:10 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by curie.credativ.org (Postfix) with ESMTP id 8EC4655EF7; Mon, 20 Sep 2004 13:47:09 +0200 (CEST) Received: from www.credativ.de (pD9500F73.dip0.t-ipconnect.de [217.80.15.115]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by curie.credativ.org (Postfix) with ESMTP id 1F84355EC2; Mon, 20 Sep 2004 13:47:08 +0200 (CEST) Received: from bell.credativ.de (bell.credativ.de [172.26.14.16]) by www.credativ.de (Postfix) with ESMTP id EB44F1C0011; Mon, 20 Sep 2004 13:51:05 +0200 (CEST) From: Peter Eisentraut To: Gaetano Mendola Subject: Re: How to check postgres running or not ? Date: Mon, 20 Sep 2004 13:47:44 +0200 User-Agent: KMail/1.6.2 Cc: Worik , Tom Lane , pgsql-sql@postgresql.org References: <414A7395.8070503@vertex.co.in> <414E25B3.9070309@noggon.com> <414EAB83.3060600@bigfoot.com> In-Reply-To: <414EAB83.3060600@bigfoot.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409201347.44410.peter_e@gmx.net> X-Virus-Scanned: by AMaViS at credativ.com 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/155 X-Sequence-Number: 19001 Am Montag, 20. September 2004 12:05 schrieb Gaetano Mendola: > It only depends on your distribution, in your case: > > ps aux | grep /usr/lib/postgresql/bin/postmaster | grep -v grep > > consider also the if you run different postmaster version in different > location this is the only way I believe Or maybe simply: $ ps -C postmaster -F UID PID PPID C SZ RSS PSR STIME TTY TIME CMD postgres 1172 1 0 4339 2160 0 09:14 ? 00:00:00 /usr/lib/postgresql/bin/postmaster -D /var/lib/postgres/data postgres 1177 1172 0 2039 2776 0 09:14 ? 00:00:00 postgres: stats buffer process postgres 1178 1177 0 1826 2048 0 09:14 ? 00:00:00 postgres: stats collector process postgres 9935 1172 0 4443 2848 0 13:46 ? 00:00:00 postgres: pei template1 [local] idle -- Peter Eisentraut http://developer.postgresql.org/~petere/