Re: BUG #16561: timestamp with time zone microseconds inconsistently recorded correctly and incorrectly

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: peter(at)mccarthy(dot)co(dot)nz, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #16561: timestamp with time zone microseconds inconsistently recorded correctly and incorrectly
Date: 2020-07-30 02:56:59
Message-ID: 1352169.1596077819@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thomas Munro <thomas(dot)munro(at)gmail(dot)com> writes:
> Before release 10, it was possible for it to use floating point
> storage instead of integers; I wonder if that could be a factor here.

I wondered about that briefly as well. It doesn't seem to fit the
facts though.

(1) integer timestamps have been the default since 8.4;

(2) if the OP were using float timestamps, he'd have to be working
with dates millions of years away from the epoch to lose any
substantial fraction of a second in precision. 2^53 seconds is
~285 million years if I've not miscounted. Even dropping the last
microsecond digit won't happen for dates within a couple hundred
years of AD 2000.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2020-07-30 11:39:15 BUG #16563: Потерлись данные таблиц POS
Previous Message Peter Thomas 2020-07-30 02:44:13 Re: BUG #16561: timestamp with time zone microseconds inconsistently recorded correctly and incorrectly