Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnN31-00AlEA-3I for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Oct 2023 17:49:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qnN2z-00GYHV-8h for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Oct 2023 17:49:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnN2y-00GYGt-UM for pgsql-hackers@lists.postgresql.org; Mon, 02 Oct 2023 17:49:32 +0000 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnN2v-007pLN-H6 for pgsql-hackers@postgresql.org; Mon, 02 Oct 2023 17:49:31 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id E93D720002; Mon, 2 Oct 2023 17:49:23 +0000 (UTC) Message-ID: <507f399f-e21f-e20e-0090-710de187a662@postgresfriends.org> Date: Mon, 2 Oct 2023 19:49:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: Allow deleting enumerated values from an existing enumerated data type Content-Language: en-US To: Tom Lane Cc: Andrew Dunstan , =?UTF-8?B?0JTQsNC90LjQuyDQodGC0L7Qu9C/0L7QstGB0LrQuNGF?= , pgsql-hackers@postgresql.org, o.tselebrovskiy@postgrespro.ru, d.frolov@postgrespro.ru References: <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> From: Vik Fearing In-Reply-To: <1128539.1695950229@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-GND-Sasl: vik@postgresfriends.org List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/29/23 03:17, Tom Lane wrote: > Vik Fearing 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