pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: David F. Skoll <dfs@roaringpenguin.com>
Cc: Joel Burton <joel@joelburton.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: What kind of index to use for many rows with few unique
Date: Mon, 02 Dec 2002 15:15:08 -0800
Message-ID: <3DEBE97C.3090304@joeconway.com> (raw)
In-Reply-To: <Pine.LNX.4.50.0212021813470.6481-100000@shishi.roaringpenguin.com>
References: <Pine.LNX.4.50.0212021707290.6178-100000@shishi.roaringpenguin.com>
	<20021202230438.GA16554@temp.joelburton.com>
	<Pine.LNX.4.50.0212021813470.6481-100000@shishi.roaringpenguin.com>

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?

Joe




view thread (6+ messages)  latest in thread

Message-ID: <3DEBE97C.3090304@joeconway.com>
Permalink:  ../3DEBE97C.3090304@joeconway.com/
Also on:    postgresql.org/message-id/3DEBE97C.3090304@joeconway.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 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: mail@joeconway.com, dfs@roaringpenguin.com, joel@joelburton.com
  Subject: Re: What kind of index to use for many rows with few unique
  In-Reply-To: <3DEBE97C.3090304@joeconway.com>
  References: <Pine.LNX.4.50.0212021707290.6178-100000@shishi.roaringpenguin.com> <20021202230438.GA16554@temp.joelburton.com> <Pine.LNX.4.50.0212021813470.6481-100000@shishi.roaringpenguin.com> <3DEBE97C.3090304@joeconway.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