Re: "Hash index" vs. "b-tree index" (PostgreSQL 8.0) - Mailing list pgsql-performance

From David Roussel
Subject Re: "Hash index" vs. "b-tree index" (PostgreSQL 8.0)
Date
Msg-id 6f6c081fabe7002128433e3b99b09e50@diroussel.xsmail.com
Whole thread Raw
In response to "Hash index" vs. "b-tree index" (PostgreSQL 8.0)  (Ying Lu <ying_lu@cs.concordia.ca>)
List pgsql-performance
> *Note: * Testing has shown PostgreSQL's hash indexes to perform no
> better than B-tree indexes, and the index size and build time for hash
> indexes is much worse. For these reasons, hash index use is presently
> discouraged.
>
> May I know for simple "=" operation query, for "Hash index" vs.
> "B-tree" index, which can provide better performance please?

If you trust the documentation use a b-tree.  If you don't trust the
documentation do your own tests.

please don't cross post.


pgsql-performance by date:

Previous
From: Chris Browne
Date:
Subject: Re: PGSQL Capacity
Next
From: Neil Conway
Date:
Subject: Re: [GENERAL] "Hash index" vs. "b-tree index" (PostgreSQL