pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Gavin Flower <GavinFlower@archidevsys.co.nz>
To: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Matthias Kurz <m.kurz@irregular.at>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Alter or rename enum value
Date: Sat, 26 Mar 2016 08:22:33 +1300
Message-ID: <56F58FF9.101@archidevsys.co.nz> (raw )
In-Reply-To: <56F58EAC.4040802@BlueTreble.com >
References: <CAO=2mx6uvgPaPDf-rHqG8=1MZnGyVDMQeh8zS4euRyyg4D35OQ@mail.gmail.com >
<56E049CC.8010201@dunslane.net >
<25605.1457539654@sss.pgh.pa.us >
<56E05635.70908@dunslane.net >
<28167.1457543612@sss.pgh.pa.us >
<CAO=2mx4rQHRvifT2yUQ1rz90A=9CVz4_Z0Sx1wTgwgQRzAimpQ@mail.gmail.com >
<CAO=2mx6rK_h4BC7y+3Nu-8fuZJXdFjd9FE_MZnzkH+vnMp0C-Q@mail.gmail.com >
<d8ja8ln7nl0.fsf@dalvik.ping.uio.no >
<d8j60wb7na4.fsf@dalvik.ping.uio.no >
<CAO=2mx6CgQXFJYXOpr4OJO+r8WX6PzEU5aT+K0vV94G7DxVJ0A@mail.gmail.com >
<56F49CF8.8050007@BlueTreble.com >
<27476.1458876456@sss.pgh.pa.us >
<56F58EAC.4040802@BlueTreble.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 26/03/16 08:17, Jim Nasby wrote:
> On 3/24/16 10:27 PM, Tom Lane wrote:
>> It's conceivable that we could do something like adding an "isdead"
>> column to pg_enum and making enum_in reject new values that're marked
>> isdead. But I can't see that we'd ever be able to support true
>> removal of an enum value at reasonable cost. And I'm not really sure
>> where the use-case argument is for working hard on it.
>
> I wonder if we could handle this by allowing foreign keys on enum
> columns back to pg_enum. Presumably that means we'd have to treat
> pg_enum as a regular table and not a catalog table. Due to locking
> concerns I don't think we'd want to put the FKs in place by default
> either.
>
> I've certainly heard people avoiding ENUMs because of their
> limitations, so it'd be nice if there was a way to lift them.
Well, I use Enums extensively in Java.
However, I totally avoid using ENUMs in pg, due to their inflexibility!
Cheers,
Gavin
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
view thread (56+ messages) latest in thread
Message-ID: <56F58FF9.101@archidevsys.co.nz>
Permalink: ../56F58FF9.101@archidevsys.co.nz/
Also on: postgresql.org/message-id/56F58FF9.101@archidevsys.co.nz
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: GavinFlower@archidevsys.co.nz, Jim.Nasby@BlueTreble.com, tgl@sss.pgh.pa.us, m.kurz@irregular.at
Subject: Re: Alter or rename enum value
In-Reply-To: <56F58FF9.101@archidevsys.co.nz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox