Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id DE9BB9FB637 for ; Thu, 7 Jun 2007 13:24:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 95057-01 for ; Thu, 7 Jun 2007 13:24:44 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from www.3times25.net (duck.3times25.net [66.23.211.34]) by postgresql.org (Postfix) with ESMTP id 9B3B19FB6FA for ; Thu, 7 Jun 2007 13:24:37 -0300 (ADT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by www.3times25.net (Postfix) with ESMTP id C2B645401F for ; Thu, 7 Jun 2007 12:24:31 -0400 (EDT) Message-ID: <4668313F.8070106@3times25.net> Date: Thu, 07 Jun 2007 12:24:31 -0400 From: Geoffrey User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: "pgsql-admin@postgresql.org Admin" Subject: Re: How to tell how long server has been up? References: <1d219a6f0706061407l12a6f4dcka1e4affcf0d04cba@mail.gmail.com> In-Reply-To: <1d219a6f0706061407l12a6f4dcka1e4affcf0d04cba@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/68 X-Sequence-Number: 25736 Chris Hoover wrote: > Maybe I'm blind (wouldn't be the first time), but I can't see a way to find > out how long postgres has been running. Is there a way to tell this from a > query? I am working with some of the stat views and would like to > correlate > them to how long the server has been running. I can think of a couple of ways... ps aux|grep postmaster ls -l postmaster.pid -- Until later, Geoffrey Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. - Benjamin Franklin