pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Данил Столповских <danil.stolpovskikh@gmail.com>
Cc: 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 10:28:59 -0400
Message-ID: <953107.1695911339@sss.pgh.pa.us> (raw)
In-Reply-To: <CAG7W4rpQn5vwKJ99sbXkdhgahPSCu=hOZhRqAq8i=ScAH8HRUg@mail.gmail.com>
References: <CAG7W4rpQn5vwKJ99sbXkdhgahPSCu=hOZhRqAq8i=ScAH8HRUg@mail.gmail.com>

=?UTF-8?B?0JTQsNC90LjQuyDQodGC0L7Qu9C/0L7QstGB0LrQuNGF?= <danil.stolpovskikh@gmail.com> writes:
> 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>

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





view thread (16+ messages)  latest in thread

Message-ID: <953107.1695911339@sss.pgh.pa.us>
Permalink:  ../953107.1695911339@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/953107.1695911339@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, 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: <953107.1695911339@sss.pgh.pa.us>
  References: <CAG7W4rpQn5vwKJ99sbXkdhgahPSCu=hOZhRqAq8i=ScAH8HRUg@mail.gmail.com> <953107.1695911339@sss.pgh.pa.us>

* 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