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 9C5D8329E69 for ; Mon, 20 Sep 2004 02:04:52 +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 37545-02 for ; Mon, 20 Sep 2004 01:04:45 +0000 (GMT) Received: from grunt9.ihug.co.nz (grunt9.ihug.co.nz [203.109.254.51]) by svr1.postgresql.org (Postfix) with ESMTP id 177B9329E51 for ; Mon, 20 Sep 2004 02:04:45 +0100 (BST) Received: from 203-118-170-69.adsl.ihug.co.nz ([192.168.1.5]) [203.118.170.69] by grunt9.ihug.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1C9Cbc-00054O-00; Mon, 20 Sep 2004 13:04:40 +1200 Message-ID: <414E2C82.6050208@noggon.com> Date: Mon, 20 Sep 2004 13:04:02 +1200 From: Worik User-Agent: Mozilla Thunderbird 0.8 (X11/20040918) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeff Eckermann Cc: pgsql-sql@postgresql.org Subject: Re: How to check postgres running or not ? References: <20040919160818.58480.qmail@web20825.mail.yahoo.com> In-Reply-To: <20040919160818.58480.qmail@web20825.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/147 X-Sequence-Number: 18993 Perhaps I have a bug in pg_ctrl? This is what I get... worik@stolberg:~$ ps aux | grep postmaster | grep -v grep ;/usr/lib/postgresql/bin/pg_ctl status postgres 670 0.0 0.6 8544 1688 pts/1 S 12:33 0:00 /usr/lib/postgresql/bin/postmaster pg_ctl: postmaster or postgres is not running worik@stolberg:~$ cheers Worik 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. > > >>Well, the way I usually check on what databases are >>running is thus: >> >>cbbrowne@wolfe:/tmp/mm5/doc> netstat -an | grep PG >> >> Saturday 13:18:30 >>unix 2 [ ACC ] STREAM LISTENING >>2793 /var/run/postgresql/.s.PGSQL.5432 >> >>One could presumably script things further to get >>more out of that; it >>doesn't normally seem worthwhile to do so... >>-- >>output = ("cbbrowne" "@" "ntlug.org") >>http://www.ntlug.org/~cbbrowne/postgresql.html >>"As long as war is regarded as wicked, it will >>always have >> its fascination. When it is looked upon as vulgar, >> it will cease to be popular." >> --Oscar Wilde >> >>---------------------------(end of >>broadcast)--------------------------- >>TIP 2: you can get off all lists at once with the >>unregister command >> (send "unregister YourEmailAddressHere" to >>majordomo@postgresql.org) >> > > > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match > > >