Re: [PERFORM] pgbench to the MAXINT - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PERFORM] pgbench to the MAXINT
Date
Msg-id 25309.1297870831@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PERFORM] pgbench to the MAXINT  (Greg Smith <greg@2ndquadrant.com>)
List pgsql-hackers
Greg Smith <greg@2ndquadrant.com> writes:
> Given that pgbench will run with threads in some multi-worker 
> configurations, after some more portability research I think odds are 
> good we'd get nailed by 
> http://sourceware.org/bugzilla/show_bug.cgi?id=10320 : "erand48 
> implementation not thread safe but POSIX says it should be".  The AIX 
> docs have a similar warning on them, so who knows how many versions of 
> that library have the same issue.

FWIW, I think that bug report is effectively complaining that if you use
both drand48 and erand48, the former can impact the latter.  If you use
only erand48, I don't see that there's any problem.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: multiset patch review
Next
From: Heikki Linnakangas
Date:
Subject: Re: Sync Rep for 2011CF1