Re: ALTER TYPE my_enum AS ENUM ADD ('label10')

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: ALTER TYPE my_enum AS ENUM ADD ('label10')
Date: 2010-03-22 15:05:15
Message-ID: 20100322150515.GI30841@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

In response to Andreas Gaab :
> Hi all,
>
>
>
> I start working with enumerator types and I am wondering, if my enumerator can
> later be adjusted. E.g. if I would like to add another label.

AFAIK you can't. Each enum is a own type. Use a lookup-table instead and
use enum's only for real static things.

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431 2EB0 389D 1DC2 3172 0C99

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Neil Stlyz 2010-03-23 01:20:57 string functions and operators
Previous Message Andreas Gaab 2010-03-22 14:33:48 ALTER TYPE my_enum AS ENUM ADD ('label10')