Search Postgresql Archives

alter view, add/drop column

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

 



I googled around and found that adding/dropping columns from views is not available. (if not true, I'm all ears).

 

Given that, what's the best way to do this?  I was thinking along the lines of a stored procedure that reads the view's definition, modifies it, drops the view, recreates the view.  The main concern here is that the view drop may fail if someone is using it.  (is that a valid concern?).  The procedure would take as args  a verb (add/delete/rename), an object (column to operate on), new name (optional, not used for delete), maybe a table name to know where in the view def to add the new column.

 

But I'm all ears for other suggestions.

 

Thanks !

 

 


[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