Re: [HACKERS] Strange interval arithmetic

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Michael Fuhr <mike(at)fuhr(dot)org>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] Strange interval arithmetic
Date: 2005-12-01 20:50:06
Message-ID: 200512012050.jB1Ko6W25012@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Here is the patch I was working on. It does us a separate libpq
> > strtol() function, but I question whether it is worth it, or if it is
> > meaningful when used by FRONTEND applications. Anyway, I am just
> > throwing it out if it gives others ideas.
>
> I did look through all the other calls to strtol/strtoul, and concluded
> that the ones in datetime.c were the only undefended ones that really
> needed a check.

Yea, I think I agree.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-12-01 20:53:34 Re: pgsql: Add comments about why errno is set to zero.
Previous Message Tom Lane 2005-12-01 20:49:36 Re: [HACKERS] Strange interval arithmetic

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2005-12-01 21:21:23 Re: Case Conversion Fix for MB Chars
Previous Message Tom Lane 2005-12-01 20:49:36 Re: [HACKERS] Strange interval arithmetic