Re: What's the best type of index for an ENUM column?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mike Christensen <mike(at)kitchenpc(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: What's the best type of index for an ENUM column?
Date: 2010-06-08 03:31:59
Message-ID: 26800.1275967919@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mike Christensen <mike(at)kitchenpc(dot)com> writes:
> I have a column in a table that's an ENUM type. What's the best type
> of index for this? It seems if I use a btree index, that's more
> optimized for doing greater than or less than comparisons which don't
> apply to an enum. I will only be doing equals comparisons on these
> columns. Thanks!

You aren't going to find that anything else beats out btree, I expect.
If we had bitmap indexes, those might be superior; but we don't.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike Christensen 2010-06-08 03:52:08 Re: What's the best type of index for an ENUM column?
Previous Message Mike Christensen 2010-06-08 03:12:07 What's the best type of index for an ENUM column?