Re: Strange interval arithmetic

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Strange interval arithmetic
Date: 2005-11-30 17:37:40
Message-ID: 29240.1133372260@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Michael Fuhr <mike(at)fuhr(dot)org> writes:
>> I see this behavior back to at least 7.3. I'd guess it's because
>> strtol() indicates overflow by returning LONG_MAX and setting errno
>> to ERANGE, but the code doesn't check for that.

> Is this worth looking at for the upcoming dot releases?

Sure, send a patch ...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2005-11-30 18:23:38 Re: [HACKERS] Upcoming PG re-releases
Previous Message Michael Fuhr 2005-11-30 16:50:56 Re: Strange interval arithmetic

Browse pgsql-patches by date

  From Date Subject
Next Message Michael Fuhr 2005-11-30 18:28:07 Re: Strange interval arithmetic
Previous Message Michael Fuhr 2005-11-30 16:50:56 Re: Strange interval arithmetic