Re: postgres uptime - Mailing list pgsql-hackers

From Andreas Pflug
Subject Re: postgres uptime
Date
Msg-id 41264AFC.5080501@pse-consulting.de
Whole thread Raw
In response to Re: postgres uptime  (Robert Treat <xzilla@users.sourceforge.net>)
Responses Re: postgres uptime  (Bruce Momjian <pgman@candle.pha.pa.us>)
List 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





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: All three packages ...
Next
From: Gaetano Mendola
Date:
Subject: 7.4.5 on RH 2.1AS