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:54:09
Message-ID: 27110.1275969249@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:
> Just to double check, an enum type is gonna be stored on the disk as
> an integer, correct? And all indexes will be based on the integer
> value of the enum?

Well, strictly speaking it's an OID, but yeah. The label is only
of interest for I/O.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dean Rasheed 2010-06-08 08:04:35 Re: Deferrable constraint checking with SAVEPOINT?
Previous Message Mike Christensen 2010-06-08 03:52:08 Re: What's the best type of index for an ENUM column?