Re: postgres uptime

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
Cc: Gaetano Mendola <mendola(at)bigfoot(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: postgres uptime
Date: 2004-08-20 19:03:24
Message-ID: 41264AFC.5080501@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Treat wrote:

>
> If we do add this function, I guarantee you that you'll see it added to
> phppgadmin and pgadmin, because it helps make these remote
> administration tools more complete.

:-)
Guess what I just implemented...

pg_postmaster_starttime() RETURNS timestamp, currently implemented in
the admin module for win32 using GetProcessTimes(PostmasterHandle).

What's the equivalent for posix? Interpreting popen("ps...") might get
messy.

Regards,
Andreas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-08-20 19:47:04 Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Previous Message Bruce Momjian 2004-08-20 18:04:16 Re: postgres uptime