Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E14184753A1 for ; Mon, 2 Dec 2002 18:23:00 -0500 (EST) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by postgresql.org (Postfix) with ESMTP id 4E9DF474E61 for ; Mon, 2 Dec 2002 18:23:00 -0500 (EST) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 66C6C3F4E; Mon, 2 Dec 2002 18:23:02 -0500 (EST) From: "Dan Langille" To: Joe Conway Date: Mon, 02 Dec 2002 18:23:02 -0500 MIME-Version: 1.0 Subject: Re: What kind of index to use for many rows with few unique Cc: pgsql-admin@postgresql.org, "David F. Skoll" Message-ID: <3DEBA506.20196.F87BE177@localhost> In-reply-to: <3DEBE97C.3090304@joeconway.com> References: X-mailer: Pegasus Mail for Windows (v4.02a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/18 X-Sequence-Number: 6513 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/