Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id AE40E9FB409 for ; Wed, 6 Jun 2007 19:23:50 -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 16325-10 for ; Wed, 6 Jun 2007 19:23:37 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 5C16C9FB3D8 for ; Wed, 6 Jun 2007 19:23:47 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail.illumen.com (unknown [64.207.29.137]) by svr4.postgresql.org (Postfix) with ESMTP id 76CFA5AF024 for ; Wed, 6 Jun 2007 22:23:46 +0000 (GMT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7A889.5851CCCB" Subject: Re: How to tell how long server has been up? X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Wed, 6 Jun 2007 16:23:44 -0600 Message-ID: In-Reply-To: <1d219a6f0706061407l12a6f4dcka1e4affcf0d04cba@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] How to tell how long server has been up? Thread-Index: Aceofv0U6WXxEuSqSyiluB5m3Kn9XgAClSlw References: <1d219a6f0706061407l12a6f4dcka1e4affcf0d04cba@mail.gmail.com> From: "Benjamin Krajmalnik" To: "Chris Hoover" , X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.151 tagged_above=0 required=5 tests=AWL=0.015, BAYES_50=0.001, HTML_50_60=0.134, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200706/50 X-Sequence-Number: 25718 This is a multi-part message in MIME format. ------_=_NextPart_001_01C7A889.5851CCCB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable select pg_postmaster_start_time() =20 ________________________________ From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Chris Hoover Sent: Wednesday, June 06, 2007 3:07 PM To: pgsql-admin@postgresql.org Admin Subject: [ADMIN] How to tell how long server has been up? =09 =09 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.=20 =09 Thanks, =09 Chris =09 ------_=_NextPart_001_01C7A889.5851CCCB Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
select=20 pg_postmaster_start_time()
 


From: = pgsql-admin-owner@postgresql.org=20 [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Chris=20 Hoover
Sent: Wednesday, June 06, 2007 3:07 PM
To:=20 pgsql-admin@postgresql.org Admin
Subject: [ADMIN] How to = tell how=20 long server has been up?

Maybe I'm blind (wouldn't be the first time), but I can't = see a way=20 to find out how long postgres has been running.  Is there a way = to tell=20 this from a query?  I am working with some of the stat views and = would=20 like to correlate them to how long the server has been running.=20

Thanks,

Chris
------_=_NextPart_001_01C7A889.5851CCCB--