Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id E004D1337B54 for ; Thu, 10 Feb 2011 23:22:35 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 79605-01-2 for ; Fri, 11 Feb 2011 03:22:02 +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 415791337C00 for ; Thu, 10 Feb 2011 23:18:38 -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 p1B3IcX5012988; Thu, 10 Feb 2011 22:18:38 -0500 (EST) To: Greg Smith cc: Stephen Frost , Euler Taveira de Oliveira , Pgsql Hackers Subject: Re: [PERFORM] pgbench to the MAXINT In-reply-to: <4D549E92.4010709@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> Comments: In-reply-to Greg Smith message dated "Thu, 10 Feb 2011 21:27:30 -0500" Date: Thu, 10 Feb 2011 22:18:38 -0500 Message-ID: <12987.1297394318@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/919 X-Sequence-Number: 181708 Greg Smith writes: > Poking around a bit more, I just discovered another possible approach is > to use erand48 instead of rand in pgbench, which is either provided by > the OS or emulated in src/port/erand48.c That's way more resolution > than needed here, given that 2^48 pgbench accounts would be a scale of > 2.8M, which makes for a database of about 42 petabytes. 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). regards, tom lane