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 1qnNN4-00AlpV-Jx for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Oct 2023 18:10:19 +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 1qnNN2-00GdP4-AL for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Oct 2023 18:10:16 +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 1qnNN0-00GdOp-KJ for pgsql-hackers@lists.postgresql.org; Mon, 02 Oct 2023 18:10:15 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnNMx-007pTm-26 for pgsql-hackers@postgresql.org; Mon, 02 Oct 2023 18:10:13 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id CEDFE3200392; Mon, 2 Oct 2023 14:07:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 02 Oct 2023 14:07:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1696270077; x=1696356477; bh=LU 4RUhTwYQYU0qtitCOJzbDF7X8zcX3FI4GF06G2kr0=; b=BFOuwGefmTH71xBObt GIv/6i0BF0xmfS1pg/dQ/Ru192y/+7BZUYMzpf3bZg08LdAPlEaupFWV06hro7GF ClXjkfPtdIoKWJxpYus02wd8Lpf9lLzc3AJO3Fuavu4N3oFNhX4gDdV8n55o60oY S45SaPXMT62u1E9jzmrK0qhhbepRsQ6ZewXqFO4B0hpwn+OlGIIKf3ZozVKeqOOo ZsgMiqsFIXJeTBWh7+wQzIXHLY4FBUlB2eUvbKlELHn3cRxkONI/yckCNBAxnpix 5ZaFiGuaKnGK8FuAWfGxG974/GrNFvOxAvf0K+b744D5UVgSbODHZkFxghf6LGbk 1HVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1696270077; x=1696356477; bh=LU4RUhTwYQYU0 qtitCOJzbDF7X8zcX3FI4GF06G2kr0=; b=i8ullpSjoMjiTS5aBdC5VB61gR5gY gbo1lDYfRTGMFNyA4Kl9794Rsbb9QhJ5ABI9J0OviZrarn9CLxrI9CHjglwWlj2k YOubRRi1NZpXkDrPxAO0a9ZzZWbJWY2Vi8VjpR7wHa4Sk8QuSolnSyYFFYwzqdl1 74V8pzSKMLs0ryNLmywnumdYH5x1S6N6GZlj2RqFu6EQ9W4R9+n19u3E4D/PHTIw 39COqj1Wg9pe5KcjdU4MxAQI2NGG1917JwwVStW9DlTumsSr+LNa/cB97KVmKZ0Q Xm7Uzzvu+iZ/ItgDi+7uLC4/m53KXo2J8K5oLbgMsBaZHp8AwLV+X3NBg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdelgdduvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufhffjgfkfgggtgesthdtredttderjeenucfhrhhomhepffgrghhf ihhnnhcukfhlmhgrrhhiucforghnnhhsnohkvghruceoihhlmhgrrhhisehilhhmrghrih drohhrgheqnecuggftrfgrthhtvghrnhepkeeljeeufefhffekhfektdefleeuvdeiiefh heeffeefgeegudffudehjeejiefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepihhlmhgrrhhisehilhhmrghrihdrohhrgh X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 Oct 2023 14:07:55 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Vik Fearing Cc: Tom Lane , Andrew Dunstan , =?utf-8?B?0JTQsNC90LjQuyDQodGC0L7Qu9C/0L7QstGB0LrQuNGF?= , pgsql-hackers@postgresql.org, o.tselebrovskiy@postgrespro.ru, d.frolov@postgrespro.ru Subject: Re: Allow deleting enumerated values from an existing enumerated data type 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> <507f399f-e21f-e20e-0090-710de187a662@postgresfriends.org> Date: Mon, 02 Oct 2023 19:07:53 +0100 In-Reply-To: <507f399f-e21f-e20e-0090-710de187a662@postgresfriends.org> (Vik Fearing's message of "Mon, 2 Oct 2023 19:49:22 +0200") Message-ID: <87leckoq2u.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Vik Fearing writes: > 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. FWIW I'm +1 on this patch, and with Tom on dropping the "yet". To me it makes it sound like we intend to implement it soon (fsvo). - ilmari