Re: patch for 60 seconds bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joseph Shraibman <jks(at)selectacast(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: patch for 60 seconds bug
Date: 2001-08-16 03:43:55
Message-ID: 7786.997933435@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Joseph Shraibman <jks(at)selectacast(dot)net> writes:
> This patch fixes the problem of doing:
> select '2001-08-15 23:59:59.996'::timestamp;

This seems the hardest possible way to do it. What I suggested awhile
back was to round the timestamp value to two fractional digits before
disassembling it into y/m/d/h/m/s, which'd take only something like

foo = rint(foo * 100.0) / 100.0;

at the right place. Thomas didn't like that, for reasons that I do not
recall offhand, and nothing's been done since.

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-08-16 04:26:02 Re: Re: Proposal for encrypting pg_shadow passwords
Previous Message Tom Lane 2001-08-16 03:32:42 Re: Re: Proposal for encrypting pg_shadow passwords