Altering a column type w/o dropping views

Поиск
Список
Период
Сортировка
От Ow Mun Heng
Тема Altering a column type w/o dropping views
Дата
Msg-id 1215424438.4952.46.camel@neuromancer.home.net
обсуждение исходный текст
Ответы Re: Altering a column type w/o dropping views  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
I'm going to alter a bunch a tables columns's data type and I'm being
forced to drop a view which depends on the the colum.

eg: ALTER TABLE xs.d_trh ALTER m_dcm TYPE character varying;
ERROR:  cannot alter type of a column used by a view or rule
DETAIL:  rule _RETURN on view v_hpp depends on column "m_dcm"

Is there an alternative method of doing this w/o dropping the existing
view?


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

Предыдущее
От: Dushyanth
Дата:
Сообщение: Re: [Postgresql 8.2.3] autovacuum starting up even after disabling ?
Следующее
От: Jack Brown
Дата:
Сообщение: Re: creating "a perfect sequence" column