Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id F355286E04B for ; Mon, 30 Jan 2012 18:30:19 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rrzjr-0001kl-4o for pgsql-bugs@postgresql.org; Mon, 30 Jan 2012 22:30:20 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rrzjd-0007C5-95 for pgsql-bugs@postgresql.org; Mon, 30 Jan 2012 22:30:02 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1Rrzjc-00058m-Ph for pgsql-bugs@postgresql.org; Mon, 30 Jan 2012 22:30:00 +0000 Date: Mon, 30 Jan 2012 22:30:00 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6420: Incorrect description of Postgres time system To: pgsql-bugs@postgresql.org From: tom.mcglynn@nasa.gov X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/256 X-Sequence-Number: 32323 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...