Re: [PATCH] Alter or rename enum value - Mailing list pgsql-hackers

From Matthias Kurz
Subject Re: [PATCH] Alter or rename enum value
Date
Msg-id CAO=2mx6wDD3kA+XfJ6Lo9y3ENi3R4v_ZBmatb_58X99A-zQZJg@mail.gmail.com
Whole thread
In response to Re: [PATCH] Alter or rename enum value  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCH] Alter or rename enum value
List pgsql-hackers
On 7 September 2016 at 22:14, Tom Lane <tgl@sss.pgh.pa.us> wrote:
ilmari@ilmari.org (Dagfinn Ilmari Mannsåker) writes:
> Here is version 6 of the patch, which just adds RENAME VALUE with no IF
> [NOT] EXISTS, rebased onto current master (particularly the
> transactional ADD VALUE patch).

Pushed with some adjustments.  The only thing that wasn't a matter of
taste is you forgot to update the backend/nodes/ support functions
for struct AlterEnumStmt.

                        regards, tom lane

Thank you all for committing this feature!

Given that you are now familiar with the internals of how enums are implemented would it be possible to continue the work and add the "ALTER TYPE <name> DROP VALUE <somevalue>" command?

Thank you!
Regards, Matthias

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Optimization for lazy_scan_heap
Next
From: Andrew Borodin
Date:
Subject: Re: GiST penalty functions [PoC]