Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 3DD721337B34 for ; Wed, 16 Feb 2011 09:15:53 -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 41109-06 for ; Wed, 16 Feb 2011 13:15:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by mail.postgresql.org (Postfix) with ESMTP id 43E81133616B for ; Wed, 16 Feb 2011 09:15:45 -0400 (AST) Received: from [192.168.1.6] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0LdIcX-1QXJVO3j4D-00itZY; Wed, 16 Feb 2011 14:15:44 +0100 Message-ID: <4D5BCDFD.2010703@2ndquadrant.com> Date: Wed, 16 Feb 2011 08:15:41 -0500 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Tom Lane CC: Stephen Frost , Euler Taveira de Oliveira , Pgsql Hackers Subject: Re: [PERFORM] pgbench to the MAXINT 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> In-Reply-To: <12987.1297394318@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:V9DAx3Qz8kDbXG2NXSU7FQxSHa4LQUtxQSKNtnTyTjk YE2/Y7ILvbHaX4mcASBAmieOPWTm6sBLefh9YGg5XFNczrFryW LR9vVF1W58aMfiQM6Uu4cpdsJUjOFB/YBimWWbpKSFokzYBbmd K+VfpC0+JkyfZsD0gzBvArAmKiLwBgoW8+uLW64q2Al/vezdbM JO2HEYda8SB70rLWrfVhsWZ4i1yenX822CUUhx+Uyw= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201102/1514 X-Sequence-Number: 182303 Tom Lane wrote: > I think that might be a good idea --- it'd reduce the cross-platform > variability of the results quite a bit, I suspect. random() is not > to be trusted everywhere, but I think erand48 is pretty much the same > wherever it exists at all (and src/port/ provides it elsewhere). > 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. Maybe we could make sure the one in src/port/ is thread safe and make sure pgbench only uses it. This whole area continues to be messy enough that I think the patch needs to brew for another CF before it will all be sorted out properly. I'll mark it accordingly and can pick this back up later. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD