Re: How to tell how long server has been up?

From: "Benjamin Krajmalnik" <kraj(at)illumen(dot)com>
To: "Chris Hoover" <revoohc(at)gmail(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: How to tell how long server has been up?
Date: 2007-06-06 22:23:44
Message-ID: F4E6A2751A2823418A21D4A160B6898807A53E@fletch.stackdump.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

select pg_postmaster_start_time()

________________________________

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


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.

Thanks,

Chris

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Raul Retamozo 2007-06-06 23:09:03 copying data into another database ? (replication)
Previous Message Dan Harris 2007-06-06 22:04:44 reclaiming disk space after major updates