Thread: Alter View foo?

Alter View foo?

From
Richard Broersma Jr
Date:
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?

From
Tom Lane
Date:
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