Re: What's the best type of index for an ENUM column? - Mailing list pgsql-general

From Tom Lane
Subject Re: What's the best type of index for an ENUM column?
Date
Msg-id 26800.1275967919@sss.pgh.pa.us
Whole thread Raw
In response to What's the best type of index for an ENUM column?  (Mike Christensen <mike@kitchenpc.com>)
Responses Re: What's the best type of index for an ENUM column?  (Mike Christensen <mike@kitchenpc.com>)
List pgsql-general
Mike Christensen <mike@kitchenpc.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

pgsql-general by date:

Previous
From: Mike Christensen
Date:
Subject: What's the best type of index for an ENUM column?
Next
From: Mike Christensen
Date:
Subject: Re: What's the best type of index for an ENUM column?