Re: [HACKERS] Hash index build patch has *worse* performance at small table sizes

2008-06-21 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Did we ever do anything about this? Seems to be in there in CVS HEAD: /* * If we just insert the tuples into the index in scan order, then * (assuming their hash codes are pretty random) there will be no locality * of access to the in

Re: [HACKERS] Hash index build patch has *worse* performance at small table sizes

2008-06-21 Thread Bruce Momjian
Did we ever do anything about this? --- Tom Lane wrote: > I've been reviewing the hash index build patch submitted here: > http://archives.postgresql.org/pgsql-patches/2007-10/msg00154.php > > Although it definitely helps o

[HACKERS] Hash index build patch has *worse* performance at small table sizes

2008-03-16 Thread Tom Lane
I've been reviewing the hash index build patch submitted here: http://archives.postgresql.org/pgsql-patches/2007-10/msg00154.php Although it definitely helps on large indexes, it's actually counterproductive on not-so-large ones. The test case I'm using is random integers generated like this: