gettime() - a timeofday() alternative - Mailing list pgsql-hackers

From Brendan Jurd
Subject gettime() - a timeofday() alternative
Date
Msg-id 37ed240d05080623101d1094a1@mail.gmail.com
Whole thread Raw
Responses Re: gettime() - a timeofday() alternative  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Hi all,

I propose to add an internal function gettime() that transparently
returns the current system time, as a timestamptz with maximum
precision.

Calling gettime() would be a more elegant approach than calling
timeofday() and converting it to a timestamp, and avoids some of the
potential problems in that conversion (such as "Sat" being
misinterpreted as an Australian timezone).

I'm open to alternate suggestions for the name of the function.

If there are no objections, I'll start cooking up a patch right away.

--
BJ


pgsql-hackers by date:

Previous
From: "Jim Buttafuoco"
Date:
Subject: Re: unexpected pageaddr on startup/recovery
Next
From: Tatsuo Ishii
Date:
Subject: obtaining row locking information