Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A8D19633730 for ; Mon, 22 Mar 2010 11:36:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 83983-01 for ; Mon, 22 Mar 2010 14:36:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.scanlab.de (mail.scanlab.de [62.138.55.241]) by mail.postgresql.org (Postfix) with ESMTP id E626D6333A9 for ; Mon, 22 Mar 2010 11:36:22 -0300 (ADT) Received: from unknown (HELO Exchange-Server.scanlab-intern.de) ([172.16.20.15]) by mail.scanlab-intern.de with ESMTP; 22 Mar 2010 15:36:19 +0100 Received: from Exchange-Server.scanlab-intern.de ([127.0.0.1]) by Exchange-Server.scanlab-intern.de ([fe80::899b:4a53:8d4d:6c13%10]) with mapi; Mon, 22 Mar 2010 15:36:19 +0100 From: Andreas Gaab To: "pgsql-sql@postgresql.org" Date: Mon, 22 Mar 2010 15:33:48 +0100 Subject: ALTER TYPE my_enum AS ENUM ADD ('label10') Thread-Topic: ALTER TYPE my_enum AS ENUM ADD ('label10') Thread-Index: AcrJzQhHrCqVsu/xR7OOBfSXC/i6dw== Message-ID: <48DA836F3865C54B8FBF424A3B775AF6FDE72900@Exchange-Server.scanlab-intern.de> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: multipart/alternative; boundary="_000_48DA836F3865C54B8FBF424A3B775AF6FDE72900ExchangeServers_" MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=-10 required=5 tests=BAYES_50=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201003/159 X-Sequence-Number: 33866 --_000_48DA836F3865C54B8FBF424A3B775AF6FDE72900ExchangeServers_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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. Is it allowed just to add another entry to pg_enum? How is the enumerator t= hen sorted (i.e. enum_last() )? Is it possible to alter the labels of an enumerator later on? Can I edit pg= _enum? Thanks already, Andreas Gaab ___________________________________________________________________________ SCANLAB AG Dr. Andreas Simon Gaab Entwicklung * R & D Siemensstr. 2a * 82178 Puchheim * Germany Tel. +49 (89) 800 746-513 * Fax +49 (89) 800 746-199 mailto:a.gaab@scanlab.de * www.scanlab.de Amtsgericht M=FCnchen: HRB 124707 * USt-IdNr.: DE 129 456 351 Vorstand: Georg Hofner (Sprecher), Christian Huttenloher, Norbert Petschik Aufsichtsrat (Vorsitz): Dr. Hans J. Langer ___________________________________________________________________________ --_000_48DA836F3865C54B8FBF424A3B775AF6FDE72900ExchangeServers_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi all,

 

I start working with enumerator types and I am wondering, if my enumerator ca= n later be adjusted. E.g. if I would like to add another label.

 

Is it allowed just to add another entry to pg_enum? How is the enumerator then sorted (i.e. enum_last() )?

 

Is it possible to alter the labels of an enumerator later on? Can I edit pg_en= um?

 

Thanks already,

Andreas Gaab

 

_____________________= ______________________________________________________

 

SCANLAB AG<= /o:p>

Dr. Andreas = ;Simon Gaab

Entwicklung • R & D

 

Siemensstr. 2a &= #8226; 82178 Puchheim • Germany

Tel. +49 (8= 9) 800 746-513 • Fax +49 (89) 800 746-199

mailto:a.gaab@scanlab.de • www.scanlab.de

 

Amtsgericht M=FC= nchen: HRB 124707 • USt-IdNr.: DE 129 456 351=

Vorstand: Georg Hofner (Sprecher), Christian Huttenloher, Norbert Petschik

Aufsichtsrat (Vo= rsitz): Dr. Hans J. Langer

_____________________= ______________________________________________________

 

--_000_48DA836F3865C54B8FBF424A3B775AF6FDE72900ExchangeServers_--