Re: Patch for Postmaster Uptime (from the TODO) - Mailing list pgsql-patches

From Tom Lane
Subject Re: Patch for Postmaster Uptime (from the TODO)
Date
Msg-id 29374.1109295530@sss.pgh.pa.us
Whole thread Raw
In response to Patch for Postmaster Uptime (from the TODO)  ("Eric Crampton" <escpg@eonomine.com>)
Responses Where to see the patch queue (was Re: Patch for Postmaster Uptime (from the TODO))
Re: Patch for Postmaster Uptime (from the TODO)
List pgsql-patches
"Eric Crampton" <escpg@eonomine.com> writes:
> I noticed in the TODO that there is an item requesting a function which
> returns the uptime of the postmaster. I've wanted that as well. So, I've
> added just such a thing: server_start_time(). This function returns the
> time when the postmaster was started; a simple now() - server_start_time()
> returns the uptime.

Isn't there one of these in the patch queue already?

The patch as given won't work on Windows, because it depends on fork
inheritance of the value.  I think the previous patcher fixed that.

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: New FAQ questions. minor fixes
Next
From: Eric Crampton
Date:
Subject: Where to see the patch queue (was Re: Patch for Postmaster Uptime (from the TODO))