From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Jeff Davis <pgsql(at)j-davis(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: can insert timestamp value that can't be read |
Date: | 2014-05-07 05:00:46 |
Message-ID: | 15053.1399438846@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> It looks like timestamp[tz]_pl_interval() is not doing proper validation
> in all paths.
> Patch attached. I looked for other areas that might be affected, but
> none jumped out.
This seems to be adding a heck of a lot of cycles (viz, replacing a
simple int64 or float8 addition with timestamp2tm then tm2timestamp)
to fix a corner case that will probably not matter to anyone anytime
in the next 200 thousand years, give or take a few millenia. I'm okay
with the concept of detecting overflow here, but not at this price.
Can't we do a more direct overflow check, comparable to what ordinary
int64/float8 addition does?
Also, surely timestamp_mi_interval has got the identical issue, and
probably some other operators.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Rainer Tammer | 2014-05-07 05:55:05 | Re: Problem with PostgreSQL 9.2.7 and make check on AIX 7.1 |
Previous Message | dlo | 2014-05-07 04:32:48 | BUG #10250: pgAdmin III 1.16.1 stores unescaped plaintext password |