Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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

pgsql-hackers by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group