Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AA99D4762A9 for ; Mon, 2 Dec 2002 18:17:40 -0500 (EST) Received: from joeconway.com (unknown [63.210.180.150]) by postgresql.org (Postfix) with ESMTP id 796B84764E6 for ; Mon, 2 Dec 2002 18:16:42 -0500 (EST) Received: from [206.19.64.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 3.5.9) with ESMTP-TLS id 1465917; Mon, 02 Dec 2002 15:56:22 -0800 Message-ID: <3DEBE97C.3090304@joeconway.com> Date: Mon, 02 Dec 2002 15:15:08 -0800 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021126 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "David F. Skoll" Cc: Joel Burton , pgsql-admin@postgresql.org Subject: Re: What kind of index to use for many rows with few unique References: <20021202230438.GA16554@temp.joelburton.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/17 X-Sequence-Number: 6512 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