Re: Strange interval arithmetic

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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 22:57:42
Message-ID: 20051130225742.GA27631@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Wed, Nov 30, 2005 at 05:49:53PM -0500, Tom Lane wrote:
> The SUS saith
> http://www.opengroup.org/onlinepubs/007908799/xsh/strtol.html
>
> The strtol() function will not change the setting of errno if
> successful.
>
> Perhaps more to the point, we've been doing it that way (errno test
> only) for many years without complaints. Adding a test on the return
> value is venturing into less charted waters.

Good, I'll stick with just the ERANGE check then.

--
Michael Fuhr

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2005-11-30 23:00:07 Re: Strange interval arithmetic
Previous Message Michael Fuhr 2005-11-30 22:53:20 Re: Strange interval arithmetic

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2005-11-30 23:00:07 Re: Strange interval arithmetic
Previous Message Michael Fuhr 2005-11-30 22:53:20 Re: Strange interval arithmetic