Re: Bug or feature? (The constraint of the domain of extension can be dropped...)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug or feature? (The constraint of the domain of extension can be dropped...)
Дата
Msg-id 7705.1365180735@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bug or feature? (The constraint of the domain of extension can be dropped...)  (Dmitriy Igrishin <dmitigr@gmail.com>)
Список pgsql-general
Dmitriy Igrishin <dmitigr@gmail.com> writes:
> 2013/4/5 Tom Lane <tgl@sss.pgh.pa.us>
>> We do not generally forbid ALTER on extension members.  During
>> development for instance a quick ALTER can be a whole lot more
>> convenient than dropping and reloading the whole extension.

> Debatable, because in practice during development it's often better to
> recreate the whole database which takes seconds.

[ shrug... ]  Maybe in *your* usage that's invariably true, but other
people do things differently.  A typical case where it's important not
to force this is where you're working on a datatype extension, and
dropping the extension would require dropping all your tables containing
test data.  If you're doing performance testing you've probably got
enough test data that a drop and reload will be costly.

Anyway, the established design is that the extension mechanism per se
is not meant to prevent altering an extension's member objects, only
dropping them altogether.

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: Leonardo Carneiro
Дата:
Сообщение: Re: upgrading from V8.3.4 to V9.2.4
Следующее
От: Clemens Eisserer
Дата:
Сообщение: BEFORE UPDATE trigger doesn't change column value