pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to tell how long server has been up?
3+ messages / 3 participants
[nested] [flat]

* How to tell how long server has been up?
@ 2007-06-06 21:07  Chris Hoover <revoohc@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Chris Hoover @ 2007-06-06 21:07 UTC (permalink / raw)
  To: pgsql-admin

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

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to tell how long server has been up?
@ 2007-06-06 22:23  Benjamin Krajmalnik <kraj@illumen.com>
  parent: Chris Hoover <revoohc@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Benjamin Krajmalnik @ 2007-06-06 22:23 UTC (permalink / raw)
  To: Chris Hoover <revoohc@gmail.com>; pgsql-admin

select pg_postmaster_start_time()
 


________________________________

	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?
	
	
	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
	

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to tell how long server has been up?
@ 2007-06-07 16:24  Geoffrey <esoteric@3times25.net>
  parent: Chris Hoover <revoohc@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Geoffrey @ 2007-06-07 16:24 UTC (permalink / raw)
  To: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-06-07 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-06-06 21:07 How to tell how long server has been up? Chris Hoover <revoohc@gmail.com>
2007-06-06 22:23 ` Benjamin Krajmalnik <kraj@illumen.com>
2007-06-07 16:24 ` Geoffrey <esoteric@3times25.net>

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