pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Roussel <pgsql-performance@diroussel.xsmail.com>
To: Ying Lu <ying_lu@cs.concordia.ca>
Cc: pgsql-perform <pgsql-performance@postgresql.org>
Subject: Re: "Hash index" vs. "b-tree index" (PostgreSQL 8.0)
Date: Mon, 9 May 2005 23:38:47 +0100
Message-ID: <6f6c081fabe7002128433e3b99b09e50@diroussel.xsmail.com> (raw)
In-Reply-To: <427F6853.90308@cs.concordia.ca>
References: <427F6853.90308@cs.concordia.ca>

> *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.




view thread (4+ messages)

Message-ID: <6f6c081fabe7002128433e3b99b09e50@diroussel.xsmail.com>
Permalink:  ../6f6c081fabe7002128433e3b99b09e50@diroussel.xsmail.com/
Also on:    postgresql.org/message-id/6f6c081fabe7002128433e3b99b09e50@diroussel.xsmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pgsql-performance@diroussel.xsmail.com, ying_lu@cs.concordia.ca
  Subject: Re: "Hash index" vs. "b-tree index" (PostgreSQL 8.0)
  In-Reply-To: <6f6c081fabe7002128433e3b99b09e50@diroussel.xsmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox