Re: [OT] enum translation

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: [OT] enum translation
Date: 2012-01-05 17:56:20
Message-ID: CAHyXU0yh-ZYTfZhn4hj4VvzgGpXLmaqqB3zGLLG1M4yzAFchiA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Thu, Jan 5, 2012 at 10:19 AM, Jean-Yves F. Barbier <12ukwn(at)gmail(dot)com> wrote:
> Hi list,
>
> Enum as a column type is a very practical thing.
> However, I wonder how you manage enum members translations
> into your programs?

Not sure I follow the question. Enum comes back as string, so you
either use the string directly or translate to something else via
classic data structure such as hash table.

merlin

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Kupershmidt 2012-01-06 04:47:44 Re: Removal of WAL logs
Previous Message Jean-Yves F. Barbier 2012-01-05 16:19:13 [OT] enum translation