Re: uptime function to postmaster - Mailing list pgsql-patches

From Tom Lane
Subject Re: uptime function to postmaster
Date
Msg-id 14549.1118080799@sss.pgh.pa.us
Whole thread Raw
In response to Re: uptime function to postmaster  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I think we should return intervals only when we can't return meaningful
> timestamp values. I don't have any logic to back up that opinion, though.

It's easy: a value measured as an interval will be obsolete by the time
it's delivered to the client.  A start timestamp is actually meaningful
information that will still be correct when used; uptime is fragile.

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: uptime function to postmaster
Next
From: Bruce Momjian
Date:
Subject: Re: logfile for psql patch update