Skip site navigation (1) Skip section navigation (2)

Re: float8 errors in HEAD...

From: Sean Chittenden <sean(at)chittenden(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: float8 errors in HEAD...
Date: 2003-05-08 03:49:40
Message-ID: 20030508034940.GU49916@perrin.int.nxad.com (view raw or flat)
Thread:
Lists: pgsql-bugs
> >> Do you know how to tell the difference between what you have and
> >> the freebsd releases that produce the small-is-zero results?
> 
> > I don't know in what context you're talking about detecting this,
> > but, how's this?
> 
> We need to know it in the context of the pg_regress shell script,
> which at the moment wants to make those decisions on the basis of
> the "host" string determined by configure.  Unless the OS version
> number from uname is different between the fixed and broken
> releases, we gotta problem ...

I don't know if there's a better way of doing this with an if, but:

case `uname` in
'FreeBSD')
        echo "Using FreeBSD"
        if [ `sysctl -n kern.osreldate` -gt 500112 ]; then
                echo "Non-broken stdtod()"
        else
                echo "Broken stdtod()"
        fi
        ;;
*)
        echo "Not FreeBSD"
        ;;
esac

-sc

-- 
Sean Chittenden


In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2003-05-08 04:13:20
Subject: Re: [PERFORM] [SQL] Unanswered Questions WAS: An unresolved performance problem.
Previous:From: Tom LaneDate: 2003-05-08 03:26:38
Subject: Re: float8 errors in HEAD...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group