From: Tom Lane <tgl@sss.pgh.pa.us>
To: escpg@eonomine.com
Cc: pgsql-patches@postgresql.org
Subject: Re: Patch for Postmaster Uptime (from the TODO)
Date: Thu, 24 Feb 2005 20:38:50 -0500
Message-ID: <29374.1109295530@sss.pgh.pa.us> (raw)
In-Reply-To: <39796.207.171.180.101.1109285340.spork@webmail.eonomine.com>
References: <39796.207.171.180.101.1109285340.spork@webmail.eonomine.com>
"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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, escpg@eonomine.com, pgsql-patches@postgresql.org
Subject: Re: Patch for Postmaster Uptime (from the TODO)
In-Reply-To: <29374.1109295530@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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