Re: [PATCH] Alter or rename enum value

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Alter or rename enum value
Дата
Msg-id 23103.1473604497@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Alter or rename enum value  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список 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 по дате отправления:

Предыдущее
От: Christian Convey
Дата:
Сообщение: Re: [GENERAL] C++ port of Postgres
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Use nanosleep() for pg_usleep() on Unix/Linux?