pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Langille <dan@langille.org>
To: Joe Conway <mail@joeconway.com>
Cc: pgsql-admin@postgresql.org, "David F. Skoll" <dfs@roaringpenguin.com>
Subject: Re: What kind of index to use for many rows with few unique
Date: Mon, 02 Dec 2002 18:23:02 -0500
Message-ID: <3DEBA506.20196.F87BE177@localhost> (raw)
In-Reply-To: <3DEBE97C.3090304@joeconway.com>
References: <Pine.LNX.4.50.0212021813470.6481-100000@shishi.roaringpenguin.com>

On 2 Dec 2002 at 15:15, Joe Conway wrote:

> David F. Skoll wrote:
> > No, I'm sure a btree will work.  However, won't the index be
> > inefficient (i.e., very flat) if there are many entries with the same
> > value?  Or is this not a problem?
> > 
> 
> If you're concerned, why not try a partial index?

FWIW, partial indexes didn't help for my distributions.  But btrees 
were satisfactory.
-- 
Dan Langille : http://www.langille.org/




view thread (6+ messages)

Message-ID: <3DEBA506.20196.F87BE177@localhost>
Permalink:  ../3DEBA506.20196.F87BE177@localhost/
Also on:    postgresql.org/message-id/3DEBA506.20196.F87BE177@localhost

 · 

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 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, mail@joeconway.com, dfs@roaringpenguin.com
  Subject: Re: What kind of index to use for many rows with few unique
  In-Reply-To: <3DEBA506.20196.F87BE177@localhost>
  References: <Pine.LNX.4.50.0212021813470.6481-100000@shishi.roaringpenguin.com> <3DEBA506.20196.F87BE177@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