Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 361791337B51 for ; Mon, 10 Jan 2011 01:17:35 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 86293-10 for ; Mon, 10 Jan 2011 05:17:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cpoproxy3-pub.bluehost.com (cpoproxy3-pub.bluehost.com [67.222.54.6]) by mail.postgresql.org (Postfix) with SMTP id 5D5421337B47 for ; Mon, 10 Jan 2011 01:17:26 -0400 (AST) Received: (qmail 7382 invoked by uid 0); 10 Jan 2011 05:17:25 -0000 Received: from unknown (HELO host159.hostmonster.com) (74.220.207.159) by cpoproxy3.bluehost.com with SMTP; 10 Jan 2011 05:17:25 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=timbira.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=SU5JmBfJosCi3XeoLNlOQ1/f0JRzMfTmmkwk1IjSYhVXj8vfqd0oindoDwWATPTkRkj/Hp3sCXIbXZ7E39QC8/mCSPqeMxcpo6noLSAP0pupGsflBulMBXTbYXU1DpfR; Received: from 200-140-104-166.pmjce203.dial.brasiltelecom.net.br ([200.140.104.166]) by host159.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1PcA8C-0006Jz-C9; Sun, 09 Jan 2011 22:17:25 -0700 Message-ID: <4D2A965A.3000603@timbira.com> Date: Mon, 10 Jan 2011 02:17:14 -0300 From: Euler Taveira de Oliveira User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101227 Icedove/3.0.11 MIME-Version: 1.0 To: Greg Smith CC: "pgsql-performance@postgresql.org" Subject: Re: pgbench to the MAXINT References: <4D27C4E5.5000609@2ndquadrant.com> In-Reply-To: <4D27C4E5.5000609@2ndquadrant.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1651:host159.hostmonster.com:timbirac:timbira.com} {sentby:smtp auth 200.140.104.166 authed with euler@timbira.com} X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201101/53 X-Sequence-Number: 41840 Em 07-01-2011 22:59, Greg Smith escreveu: > setrandom: invalid maximum number -2147467296 > It is failing at atoi() circa pgbench.c:1036. But it just the first one. There are some variables and constants that need to be converted to int64 and some functions that must speak 64-bit such as getrand(). Are you working on a patch? > It doesn't throw any error during the initialization step, neither via > client or database logs, even though it doesn't do anything whatsoever. > It just turns into the quickest pgbench init ever. That's the exact > threshold, because this works: > AFAICS that is because atoi() is so fragile. > So where we're at now is that the maximum database pgbench can create is > a scale of 21474. > That's because 21475 * 100,000 > INT_MAX. We must provide an alternative to atoi() that deals with 64-bit integers. -- Euler Taveira de Oliveira http://www.timbira.com/