From: tom.mcglynn@nasa.gov
To: pgsql-bugs@postgresql.org
Subject: BUG #6420: Incorrect description of Postgres time system
Date: Mon, 30 Jan 2012 22:30:00 +0000
Message-ID: <E1Rrzjc-00058m-Ph@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6420
Logged by: Thomas McGlynn
Email address: tom.mcglynn@nasa.gov
PostgreSQL version: 9.1.2
Operating system: Any
Description:
As part of our preparations for the leap second this year I wanted to see
how Postgres handles this. The only information I could see was
(Technically, PostgreSQL uses UT1 because
leap seconds are not handled.)
in section 9.9 of the manual. This seems to be a misapprehension of what
the UT1 time system is. UT1 measures mean solar time -- days are not
exactly 86400 seconds long. Currently UT1 and UTC never differ by more than
one second. Leap seconds are the way this correspondence is kept. What I
believe you should be saying is that you use TAI -- atomic time -- with some
offset.
If my inferences from the documentation is correct and Postgres measures the
number of seconds from UTC 2000-01-01, then the time system used is TAI-32
seconds. See http://stjarnhimlen.se/comp/time.html for details (and to
check whether I got the sign right!).
I think this should be clearly stated in the documentation when discussing
the time types but I did not see it.
Regards...
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tom.mcglynn@nasa.gov
Subject: Re: BUG #6420: Incorrect description of Postgres time system
In-Reply-To: <E1Rrzjc-00058m-Ph@wrigleys.postgresql.org>
References: <E1Rrzjc-00058m-Ph@wrigleys.postgresql.org>
* 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