From: Dan Langille <dan@langille.org>
To: David F. Skoll <dfs@roaringpenguin.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: What kind of index to use for many rows with few unique values?
Date: Mon, 02 Dec 2002 18:15:40 -0500
Message-ID: <3DEBA34C.13623.F8752328@localhost> (raw)
In-Reply-To: <Pine.LNX.4.50.0212021707290.6178-100000@shishi.roaringpenguin.com>
On 2 Dec 2002 at 17:10, David F. Skoll wrote:
> I've heard that a btree index performs badly in this situation.
As another poster has shown, it should be OK. I recently dealt with
distributions simlar to your example.
> Is a hash index appropriate? I've heard bad things about hash
> indexes in PostgreSQL.
No, don't use them. I didn't get any performance increase out of
them. Does your experience show poor btree results?
--
Dan Langille : http://www.langille.org/
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: dan@langille.org, dfs@roaringpenguin.com
Subject: Re: What kind of index to use for many rows with few unique values?
In-Reply-To: <3DEBA34C.13623.F8752328@localhost>
References: <Pine.LNX.4.50.0212021707290.6178-100000@shishi.roaringpenguin.com> <3DEBA34C.13623.F8752328@localhost>
* 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