Re: hash index improving v3

From: "Alex Hunsaker" <badalex(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Zdenek Kotala" <Zdenek(dot)Kotala(at)sun(dot)com>, "Xiao Meng" <mx(dot)cogito(at)gmail(dot)com>, pgsql-patches(at)postgresql(dot)org, "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
Subject: Re: hash index improving v3
Date: 2008-09-05 16:12:01
Message-ID: 34d269d40809050912u33f2afc8mb90e316bc465136e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Thu, Sep 4, 2008 at 9:48 PM, Alex Hunsaker <badalex(at)gmail(dot)com> 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....

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-09-05 16:15:08 Re: Verbosity of Function Return Type Checks
Previous Message Tom Lane 2008-09-05 16:04:47 Re: plpgsql is not translate-aware

Browse pgsql-patches by date

  From Date Subject
Next Message David Rowley 2008-09-05 17:02:54 Re: [HACKERS] TODO item: Implement Boyer-Moore searching (First time hacker)
Previous Message Xiao Meng 2008-09-05 13:05:38 Re: hash index improving v3