Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0452E133616B for ; Wed, 16 Feb 2011 11:40:39 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 44049-03 for ; Wed, 16 Feb 2011 15:40:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 735031337BA5 for ; Wed, 16 Feb 2011 11:40:31 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p1GFeVF5025310; Wed, 16 Feb 2011 10:40:31 -0500 (EST) To: Greg Smith cc: Stephen Frost , Euler Taveira de Oliveira , Pgsql Hackers Subject: Re: [PERFORM] pgbench to the MAXINT In-reply-to: <4D5BCDFD.2010703@2ndquadrant.com> References: <4D27C4E5.5000609@2ndquadrant.com> <4D2A965A.3000603@timbira.com> <4D2AC273.3010709@2ndquadrant.com> <4D2CCCD9.802@timbira.com> <4D35DF33.6060901@2ndquadrant.com> <4D5017DE.90404@2ndquadrant.com> <4D525281.1000201@2ndquadrant.com> <20110209194008.GX4116@tamriel.snowman.net> <4D549E92.4010709@2ndquadrant.com> <12987.1297394318@sss.pgh.pa.us> <4D5BCDFD.2010703@2ndquadrant.com> Comments: In-reply-to Greg Smith message dated "Wed, 16 Feb 2011 08:15:41 -0500" Date: Wed, 16 Feb 2011 10:40:31 -0500 Message-ID: <25309.1297870831@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/1528 X-Sequence-Number: 182317 Greg Smith 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