Re: join regression failure on cygwin - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: join regression failure on cygwin
Date
Msg-id 4A69B1AE.1030502@dunslane.net
Whole thread Raw
In response to Re: join regression failure on cygwin  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: join regression failure on cygwin  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Tom Lane wrote:
> I don't personally have a problem with just forcing use of our own
> erand48 on Cygwin; it's not a lot of code and it would make the behavior
> of that build more like the MSVC build.  But it's curious that such a
> simple library function is seemingly broken on Cygwin ... especially
> when their random() and srandom() evidently work.
>
>   

It appears on Googling a bit that the erand48() is buggy in that it 
requires the seed to have been initialized with srand48() or it will 
constantly return 0.0.

So I think just forcing use of ours is the safe way to go. It might have 
been fixed since I installed Cygwin, although I can't find a reference 
to that, and I don't feel like triangulating it anyway.

cheers

andrew


pgsql-hackers by date:

Previous
From: Alex Brasetvik
Date:
Subject: Re: join removal
Next
From: Michael Gould
Date:
Subject: Re: When is a record NULL?