Connecting Tech Pros Worldwide Help | Site Map

Hash index creation problem

  #1  
Old October 24th, 2006, 10:55 PM
Spacen Jasset
Guest
 
Posts: n/a
I am running postgresql at version 8.1 on a windows xp desktop machine.

I then loaded 40 million rows into a table of 6 varchar fields ( The sum
total length of a row is on average about 100 characters )

If create a single btree index on one of the shortest fields ( about 6
chars long ) it takes approximately 15 minutes

On the other hand if I try to create a hash index it is still working to
create the index after 5 hours (I stopped the server at this point).
There seems to be something wrong here. I would have expected a hash
index to be quicker to create. At any rate I can't see why it should
take over 5 hours vs 15 minutes for the btree.

I read in some newgroup postings that the hash index isn't quite so
reliable, is this the problem that I have encountered, or do I need to
do anything special when creating a hash index - do I need to run on a
sever OS, for example, for this size of index.

In both cases I am using the bundled pgAdmin console to create the indexes.

I can of course use a btree index, but I wonder what went wrong when I
tried to create a hash index.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle 11g New Features Vinod Sadanandan answers 1 October 28th, 2007 07:30 AM
python-dev Summary for 2006-08-01 through 2006-08-15 steven.bethard@gmail.com answers 0 October 9th, 2006 03:05 PM
Download the JAVA , .NET and SQL Server interview with answers Jobs answers 2 September 26th, 2006 02:25 PM
Download the JAVA , .NET and SQL Server interview PDF Jobs answers 0 September 17th, 2006 02:05 PM