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

From Tom Lane
Subject Re: [PATCH] Alter or rename enum value
Date
Msg-id 23103.1473604497@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] Alter or rename enum value  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers
Jim Nasby <Jim.Nasby@BlueTreble.com> writes:
> On 9/8/16 4:55 AM, Emre Hasegeli wrote:
>> The main problem that has been discussed before was the indexes.  One
>> way is to tackle with it is to reindex all the tables after the
>> operation.  Currently we are doing it when the datatype of indexed
>> columns change.  So it should be possible, but very expensive.

> Why not just disallow dropping a value that's still in use? That's 
> certainly what I would prefer to happen by default...

Even ignoring the hidden-values-in-indexes problem, how would you
discover that it's still in use?  Not to mention preventing new
insertions after you look?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Christian Convey
Date:
Subject: Re: [GENERAL] C++ port of Postgres
Next
From: Tom Lane
Date:
Subject: Re: Use nanosleep() for pg_usleep() on Unix/Linux?