Alter View foo?

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

Alter View foo?

От:
Richard Broersma Jr <rabroersma@yahoo.com>
Дата:
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 <tgl@sss.pgh.pa.us>
Дата:
Richard Broersma Jr  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
FAQ