Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U08BA-0006ri-03 for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jan 2013 10:12:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U08B9-00070y-GM for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jan 2013 10:12:35 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U08B7-00070t-VZ for pgsql-hackers@postgresql.org; Tue, 29 Jan 2013 10:12:34 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U08B6-0005qH-A0 for pgsql-hackers@postgresql.org; Tue, 29 Jan 2013 10:12:33 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 9F6C128243; Tue, 29 Jan 2013 02:12:30 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 991F01825C; Tue, 29 Jan 2013 02:12:30 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 201F01219C9; Tue, 29 Jan 2013 02:15:03 -0800 (PST) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-1.vmware.com Received: from zcs-prod-ext-mta-1.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-1.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D0n99Kym3HJl; Tue, 29 Jan 2013 02:15:03 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id DD54C1219C3; Tue, 29 Jan 2013 02:15:02 -0800 (PST) Received: from [192.168.1.90] (unknown [10.113.62.14]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Tue, 29 Jan 2013 02:15:01 -0800 (PST) Message-ID: <5107A099.6030208@vmware.com> Date: Tue, 29 Jan 2013 12:12:41 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11 MIME-Version: 1.0 To: Gurjeet Singh CC: Satoshi Nagayasu , Greg Smith , Tom Lane , 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> <4D5BCDFD.2010703@2ndquadrant.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.4 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 28.01.2013 23:30, Gurjeet Singh wrote: > On Sat, Jan 26, 2013 at 11:24 PM, Satoshi Nagayasu wrote: > >> 2012/12/21 Gurjeet Singh: >>> The patch is very much what you had posted, except for a couple of >>> differences due to bit-rot. (i) I didn't have to #define >> MAX_RANDOM_VALUE64 >>> since its cousin MAX_RANDOM_VALUE is not used by code anymore, and (ii) I >>> used ternary operator in DDLs[] array to decide when to use bigint vs int >>> columns. >>> >>> Please review. >>> >>> As for tests, I am currently running 'pgbench -i -s 21474' using >>> unpatched pgbench, and am recording the time taken;Scale factor 21475 had >>> actually failed to do anything meaningful using unpatched pgbench. Next >> I'll >>> run with '-s 21475' on patched version to see if it does the right thing, >>> and in acceptable time compared to '-s 21474'. >>> >>> What tests would you and others like to see, to get some confidence >> in >>> the patch? The machine that I have access to has 62 GB RAM, 16-core >>> 64-hw-threads, and about 900 GB of disk space. >> >> I have tested this patch, and hvae confirmed that the columns >> for aid would be switched to using bigint, instead of int, >> when the scalefactor>= 20,000. >> (aid columns would exeed the upper bound of int when sf>21474.) >> >> Also, I added a few fixes on it. >> >> - Fixed to apply for the current git master. >> - Fixed to surpress few more warnings about INT64_FORMAT. >> - Minor improvement in the docs. (just my suggestion) >> >> I attached the revised one. > > Looks good to me. Thanks! Ok, committed. At some point, we might want to have a strtoll() implementation in src/port. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers