Обсуждение: Alter View foo?

Поиск
Список
Период
Сортировка

Alter View foo?

От
Richard Broersma Jr
Дата:
I am trying to add additional columns to an existing view.  The ALTER statement doesn't appear to
operate on views. Is there a way to alter the definition of a view without dropping and recreating
it?

Regards,

Richard

Re: Alter View foo?

От
Tom Lane
Дата:
Richard Broersma Jr <rabroersma@yahoo.com> writes:
> Is there a way to alter the definition of a view without dropping and
> recreating it?

You can replace a view with a different computation of the same output
columns, but you can't change the set of output columns.  I'm not sure
why we still enforce that, given that regular tables can be changed more
flexibly ...

            regards, tom lane