Re: Patch for Postmaster Uptime (from the TODO)
| От | Tom Lane |
|---|---|
| Тема | Re: Patch for Postmaster Uptime (from the TODO) |
| Дата | |
| Msg-id | 29374.1109295530@sss.pgh.pa.us обсуждение |
| Ответ на | Patch for Postmaster Uptime (from the TODO) ("Eric Crampton" <escpg@eonomine.com>) |
| Ответы |
Where to see the patch queue (was Re: Patch for Postmaster Uptime (from the TODO))
Re: Patch for Postmaster Uptime (from the TODO) |
| Список | 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 по дате отправления: