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 1qlrR5-004eDj-Nr for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Sep 2023 13:52:11 +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 1qlrQ6-00DIMU-Cc for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Sep 2023 13:51:10 +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 1qlrQ6-00DILa-2J for pgsql-hackers@lists.postgresql.org; Thu, 28 Sep 2023 13:51:10 +0000 Received: from relay8-d.mail.gandi.net ([2001:4b98:dc4:8::228]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlrQ3-00781F-62 for pgsql-hackers@postgresql.org; Thu, 28 Sep 2023 13:51:08 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id BFE101BF205; Thu, 28 Sep 2023 13:50:59 +0000 (UTC) Message-ID: <88d0151c-a609-86e6-d2ea-d0437e68d615@postgresfriends.org> Date: Thu, 28 Sep 2023 15:50:58 +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: =?UTF-8?B?0JTQsNC90LjQuyDQodGC0L7Qu9C/0L7QstGB0LrQuNGF?= , pgsql-hackers@postgresql.org Cc: o.tselebrovskiy@postgrespro.ru, d.frolov@postgrespro.ru References: From: Vik Fearing In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: vik@postgresfriends.org List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/28/23 14:13, Данил Столповских wrote: > Greetings, everyone! > I would like to offer my patch on the problem of removing values from enums > > It adds support for expression ALTER TYPE DROP VALUE > > > Added: > 1. expression in grammar > 2. function to drop enum values > 3. regression tests > 4. documentation Thanks for this patch that a lot of people want. However, it does not seem to address the issue of how to handle the dropped value being in the high key of an index. Until we solve that problem (and maybe others), this kind of patch is insufficient to add the feature. -- Vik Fearing