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 1qls0o-004fu3-RO for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Sep 2023 14:29:06 +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 1qls0n-00DdG9-8X for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Sep 2023 14:29:05 +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 1qls0m-00DdFT-Uc for pgsql-hackers@lists.postgresql.org; Thu, 28 Sep 2023 14:29:04 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qls0k-0078FX-BD for pgsql-hackers@postgresql.org; Thu, 28 Sep 2023 14:29:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 38SESxtf953108; Thu, 28 Sep 2023 10:28:59 -0400 From: Tom Lane To: =?UTF-8?B?0JTQsNC90LjQuyDQodGC0L7Qu9C/0L7QstGB0LrQuNGF?= cc: pgsql-hackers@postgresql.org, o.tselebrovskiy@postgrespro.ru, d.frolov@postgrespro.ru Subject: Re: Allow deleting enumerated values from an existing enumerated data type In-reply-to: References: Comments: In-reply-to =?UTF-8?B?0JTQsNC90LjQuyDQodGC0L7Qu9C/0L7QstGB0LrQuNGF?= message dated "Thu, 28 Sep 2023 19:13:29 +0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <953106.1695911339.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 28 Sep 2023 10:28:59 -0400 Message-ID: <953107.1695911339@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =3D?UTF-8?B?0JTQsNC90LjQuyDQodGC0L7Qu9C/0L7QstGB0LrQuNGF?=3D writes: > I would like to offer my patch on the problem of removing values from en= ums > It adds support for expression ALTER TYPE DROP VALUE > This does not fix any of the hard problems that caused us not to have such a feature to begin with. Notably, what happens to stored data of the enum type if it is a now-deleted value? regards, tom lane