Re: [HACKERS] threads stuff/UnixWare - Mailing list pgsql-patches

From Larry Rosenman
Subject Re: [HACKERS] threads stuff/UnixWare
Date
Msg-id 60B7BD71E4C4B7C1975DBC03@lerlaptop.lerctr.org
Whole thread Raw
In response to Re: [HACKERS] threads stuff/UnixWare  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] threads stuff/UnixWare
List pgsql-patches

--On Thursday, May 13, 2004 21:14:40 -0400 Tom Lane <tgl@sss.pgh.pa.us>
wrote:

> Larry Rosenman <ler@lerctr.org> writes:
>>> Does Unixware support NaN/Infinity at all?
>
>> Yes, we support NaN's and Inf.
>
> Hmph.  Apparently their strtod() has thought of some original new way to
> misbehave on those inputs.  Would you mind tracing through float4in() or
> float8in() to see exactly how it manages to fail?
>
>             regards, tom lane


I ran a quick C test:

cc -O -o test3 test3.c
$ ./test3
num=nan
errno=0
$ cat test3.c
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
int main(int argc,char **argv)
{
  double num;
  char *input="NaN";
  char **ptr;

  num=strtod(input,ptr);
  printf("num=%g\n",num);
  printf("errno=%ld\n",errno);
  exit(0);
}


So, how's the easiest way to trace PG's float4in stuff?



--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Attachment

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] threads stuff/UnixWare
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] threads stuff/UnixWare