Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E3D7964FF27 for ; Fri, 5 Sep 2008 13:12:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 61168-07 for ; Fri, 5 Sep 2008 13:12:04 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.191]) by postgresql.org (Postfix) with ESMTP id 4922D64FCEB for ; Fri, 5 Sep 2008 13:12:04 -0300 (ADT) Received: by gv-out-0910.google.com with SMTP id i36so42714gve.7 for ; Fri, 05 Sep 2008 09:12:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=yvXWmx7qfGiPR/+fcVLObgU5vpqksEyqKyjwLSYam0c=; b=A03MJI+l1GHRA5BJscTrin+vxprFTxfZwPWy/654ZPJiHXdeC8jxsgJ2n+PirOwDSS MNSsF1rWQTaX1qs0ddXvOYae/mdGTVAYA1XCRCW10Nr/Eng/u8Q+eOriDv5LDApqq/WS exDS2VEQ7HQeG4NIBhCA+kxVgroKmJB1Vi6Wk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=DgaI+1KuUWa99OgVsvdu+m9lxGjC9Kxw8bki8m7moNlFGyGHipQtMKkpucqo5mxhIE cUjtZZBgxcliSRB0VanGqxo9RsGqfR4Cf9OeTSwdbOJn6Pm+u8ob4Y7FVUO1nndMhGh0 YASQ5WUmmSqv6vVElWD35jWaKrSMrsjKpnDd8= Received: by 10.187.183.15 with SMTP id k15mr2570110fap.86.1220631121922; Fri, 05 Sep 2008 09:12:01 -0700 (PDT) Received: by 10.187.225.11 with HTTP; Fri, 5 Sep 2008 09:12:01 -0700 (PDT) Message-ID: <34d269d40809050912u33f2afc8mb90e316bc465136e@mail.gmail.com> Date: Fri, 5 Sep 2008 10:12:01 -0600 From: "Alex Hunsaker" To: "Tom Lane" Subject: Re: hash index improving v3 Cc: "Zdenek Kotala" , "Xiao Meng" , pgsql-patches@postgresql.org, "Jonah H. Harris" In-Reply-To: <34d269d40809042048m3b532a5ej7a9588f63a788d0c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48BFDA8D.3080506@sun.com> <29987.1220560114@sss.pgh.pa.us> <7627.1220569888@sss.pgh.pa.us> <34d269d40809041742r6a0703dbgfbdd012f7f19de2e@mail.gmail.com> <10995.1220577198@sss.pgh.pa.us> <11525.1220579153@sss.pgh.pa.us> <34d269d40809041854g355a8f68ga3a037a69e3d9fcb@mail.gmail.com> <11962.1220581027@sss.pgh.pa.us> <34d269d40809042048m3b532a5ej7a9588f63a788d0c@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/55 X-Sequence-Number: 7070 On Thu, Sep 4, 2008 at 9:48 PM, Alex Hunsaker wrote: > (obviously on a 64 bit machine) > int main(void) > { > unsigned long y = 0; > unsigned cnt = 0; > > printf("insert into test_hash (num) values "); > > //while(cnt != LONG_MAX/UINT_MAX) > while(cnt < 10000000) > { > y += UINT_MAX; > > printf("(%ld), ", y); > > cnt++; > } > > printf("(0);\n"); > > } Argh sorry I must have been smoking something yesterday thats supposed to be y+= UINT_MAX + 1 so the benchmarking I did was worthless... running again with the right values....