dbTalk Databases Forums  

Hash index creation problem

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Hash index creation problem in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Spacen Jasset
 
Posts: n/a

Default Hash index creation problem - 10-24-2006 , 06:16 PM






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.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.