Search Postgresql Archives

Re: Changing the number and type of columns in a view

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Russell Smith wrote:
Hi General,

Is there a reason why it is not possible to redefine a view with a different number of columns or a different column type? It's been possible to change the datatypes of a table, and the column numbers for a long time. What are the restrictions on making this possible for views.

I know you can drop an recreate the view, but if the view has dependent objects it becomes more difficult.

That's why - the dependent objects might have to change with it.

I suppose it should be possible to add columns to a view without causing too many problems. Or change a column-definition provided it isn't referenced anywhere.

--
  Richard Huxton
  Archonet Ltd


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux