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

Hash indexes

From: Mladen Gogala <mladen(dot)gogala(at)vmsinfo(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Hash indexes
Date: 2009-12-15 19:48:18
Message-ID: 1260906498.22825.52.camel@nycwxp2622 (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
PostgreSQL has hash indexes, very similar to Oracle bitmap indexes. 
Oracle warns the application designers against using them in the OLTP 
applications because of the locking. Namely, locking a row would lock
the rows which hash to the same hash value as the original row. 
My question is whether the same thing applies to the PostgreSQL hash 
indexes? In the documentation page, I found the following:

CREATE INDEX name ON table USING hash (column);

    Note: Hash index operations are not presently WAL-logged, so hash 
indexes might need to be rebuilt with REINDEX after a database crash.
this reason, hash index use is presently discouraged. 

My question is whether someone here has played with the hash indexes?
words of caution or blissful experiences? Thanks.

Mladen Gogala 
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251 

The Leader in Integrated Media
Intelligence Solutions


pgsql-novice by date

Next:From: Richard BroersmaDate: 2009-12-15 21:02:11
Subject: Re: Hash indexes
Previous:From: Jean-Yves F. BarbierDate: 2009-12-14 18:01:46
Subject: UTC timestamp

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