From: Vik Fearing <vik@postgresfriends.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Данил Столповских <danil.stolpovskikh@gmail.com>
Cc: pgsql-hackers@postgresql.org
Cc: o.tselebrovskiy@postgrespro.ru
Cc: d.frolov@postgrespro.ru
Subject: Re: Allow deleting enumerated values from an existing enumerated data type
Date: Mon, 2 Oct 2023 19:49:22 +0200
Message-ID: <507f399f-e21f-e20e-0090-710de187a662@postgresfriends.org> (raw)
In-Reply-To: <1128539.1695950229@sss.pgh.pa.us>
References: <CAG7W4rpQn5vwKJ99sbXkdhgahPSCu=hOZhRqAq8i=ScAH8HRUg@mail.gmail.com>
<953107.1695911339@sss.pgh.pa.us>
<4755493c-a25c-1332-d2c1-900bd02fb125@dunslane.net>
<1081742.1695926782@sss.pgh.pa.us>
<9fffd149-da0f-0c9c-6745-731fb688642a@postgresfriends.org>
<1128539.1695950229@sss.pgh.pa.us>
On 9/29/23 03:17, Tom Lane wrote:
> Vik Fearing <vik@postgresfriends.org> writes:
>> On 9/28/23 20:46, Tom Lane wrote:
>>> We went through all these points years ago when the enum feature
>>> was first developed, as I recall. Nobody thought that the ability
>>> to remove an enum value was worth the amount of complexity it'd
>>> entail.
>
>> This issue comes up regularly (although far from often). Do we want to
>> put some comments right where would-be implementors would be sure to see it?
>
> Perhaps. I'd be kind of inclined to leave the "yet" out of "not yet
> implemented" in the error message, as that wording sounds like we just
> haven't got round to it.
I see your point, but should we be dissuading people who might want to
work on solving those problems? I intentionally did not document that
this syntax exists so the only people seeing the message are those who
just try it, and those wanting to write a patch like Danil did.
No one except you has said anything about this patch. I think it would
be good to commit it, wordsmithing aside.
--
Vik Fearing
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: vik@postgresfriends.org, tgl@sss.pgh.pa.us, andrew@dunslane.net, danil.stolpovskikh@gmail.com, o.tselebrovskiy@postgrespro.ru, d.frolov@postgrespro.ru
Subject: Re: Allow deleting enumerated values from an existing enumerated data type
In-Reply-To: <507f399f-e21f-e20e-0090-710de187a662@postgresfriends.org>
References: <CAG7W4rpQn5vwKJ99sbXkdhgahPSCu=hOZhRqAq8i=ScAH8HRUg@mail.gmail.com> <953107.1695911339@sss.pgh.pa.us> <4755493c-a25c-1332-d2c1-900bd02fb125@dunslane.net> <1081742.1695926782@sss.pgh.pa.us> <9fffd149-da0f-0c9c-6745-731fb688642a@postgresfriends.org> <1128539.1695950229@sss.pgh.pa.us> <507f399f-e21f-e20e-0090-710de187a662@postgresfriends.org>
* 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