From: Geoffrey <esoteric@3times25.net>
To: pgsql-admin@postgresql.org Admin <pgsql-admin@postgresql.org>
Subject: Re: How to tell how long server has been up?
Date: Thu, 07 Jun 2007 12:24:31 -0400
Message-ID: <4668313F.8070106@3times25.net> (raw)
In-Reply-To: <1d219a6f0706061407l12a6f4dcka1e4affcf0d04cba@mail.gmail.com>
References: <1d219a6f0706061407l12a6f4dcka1e4affcf0d04cba@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: esoteric@3times25.net
Subject: Re: How to tell how long server has been up?
In-Reply-To: <4668313F.8070106@3times25.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox