Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 3AF201337BB9 for ; Mon, 10 Jan 2011 04:25:36 -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 62999-06 for ; Mon, 10 Jan 2011 08:25:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mail.postgresql.org (Postfix) with ESMTP id A5F371337BA3 for ; Mon, 10 Jan 2011 04:25:28 -0400 (AST) Received: from [192.168.1.6] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0McPxo-1Ptjuu3uUq-00IGLl; Mon, 10 Jan 2011 09:25:25 +0100 Message-ID: <4D2AC273.3010709@2ndquadrant.com> Date: Mon, 10 Jan 2011 03:25:23 -0500 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Euler Taveira de Oliveira CC: "pgsql-performance@postgresql.org" Subject: Re: pgbench to the MAXINT References: <4D27C4E5.5000609@2ndquadrant.com> <4D2A965A.3000603@timbira.com> In-Reply-To: <4D2A965A.3000603@timbira.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:meyOLClWjNoJY/WKRZ/vBo/Cjx5VLfLJ81T+3zdRbyG 92aXKQ8OMV5rAgqmtZ8NsMYGsF1yZfk+u14+QdDX2udUVziAlx x7/vCiJlyCY7LQto0mSf/xLWu4uV83juj78deqlWy1HNgpB1ug DUKjBVEObxoQuXHd8NDFpfxBhFIAucQzxC9Ghe3KcBDd3K0Owj 2zrw192OaNUIx/iP4ybIk96ir6Ja+xsw1dAj0KwwvA= 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/54 X-Sequence-Number: 41841 Euler Taveira de Oliveira wrote: > 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? http://archives.postgresql.org/pgsql-hackers/2010-01/msg02868.php http://archives.postgresql.org/message-id/4C326F46.4050801@2ndquadrant.com I thought we really needed to fix that before 9.0 shipped, but it turned out the limit wasn't so bad after all on 64-bit systems; I dropped worrying about it for a while. It's starting to look like it's back on the critical list for 9.1 again though. If anyone here wanted to pick that up and help with review, I could easily update to it to current git HEAD and re-post. There's enough people on this list who do tests on large machines that I was mainly alerting to where the breaking point is at, the fix required has already been worked on a bit. Someone with more patience than I to play around with multi-platform string conversion trivia is what I think is really needed next, followed by some performance tests on 32-bit systems. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us "PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books