pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vik Fearing <vik@postgresfriends.org>
To: Данил Столповских <danil.stolpovskikh@gmail.com>
To: 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: Thu, 28 Sep 2023 15:50:58 +0200
Message-ID: <88d0151c-a609-86e6-d2ea-d0437e68d615@postgresfriends.org> (raw)
In-Reply-To: <CAG7W4rpQn5vwKJ99sbXkdhgahPSCu=hOZhRqAq8i=ScAH8HRUg@mail.gmail.com>
References: <CAG7W4rpQn5vwKJ99sbXkdhgahPSCu=hOZhRqAq8i=ScAH8HRUg@mail.gmail.com>

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 <enum_name> DROP VALUE
> <value_name>
> 
> 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






view thread (16+ messages)  latest in thread

Message-ID: <88d0151c-a609-86e6-d2ea-d0437e68d615@postgresfriends.org>
Permalink:  ../88d0151c-a609-86e6-d2ea-d0437e68d615@postgresfriends.org/
Also on:    postgresql.org/message-id/88d0151c-a609-86e6-d2ea-d0437e68d615@postgresfriends.org

 · 

reply

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, 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: <88d0151c-a609-86e6-d2ea-d0437e68d615@postgresfriends.org>
  References: <CAG7W4rpQn5vwKJ99sbXkdhgahPSCu=hOZhRqAq8i=ScAH8HRUg@mail.gmail.com> <88d0151c-a609-86e6-d2ea-d0437e68d615@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