Unix Technical Forum

Re: request feature: alter view add column (or something like)

This is a discussion on Re: request feature: alter view add column (or something like) within the pgsql Hackers forums, part of the PostgreSQL category; --> I agree with Greg's suggested improvement, and would also like to see the ability to drop a column or ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-15-2008, 10:46 PM
Tyler Erickson
 
Posts: n/a
Default Re: request feature: alter view add column (or something like)

I agree with Greg's suggested improvement, and would also like to see
the ability to drop a column or change a column's datatype. Right now
it is a pretty time consuming process to 'alter' a view (i.e. figure out
the dependent views, drop the dependent views, modify the base view, add
back the dependent views) and leaves a lot of room for human error.

The 'Alter View' command introduced in 8.3 seems to be a good start, and
I hope it will be expanded to allow for adding/dropping/modifying view
columns.

- Tyler

Greg Smith wrote:
> Sometimes, I have to add column to table, then adding the column to some view.
>
> Currently it impossible to alter a view to add a new column, which is really
> annoying. The only solution is to drop the view, and all dependented view,
> then recreating everything.
>
> Someone on #postgresqlfr said me there were discussion about that.
>
> I think this would be a big improvement for pg 8.4.
>
> My 2 cents.
>
> Regards.
> --
> * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD
>



--
Tyler A. Erickson, Ph.D.
Research Scientist
Michigan Tech Research Institute
3600 Green Court, Suite 100
Ann Arbor, MI 48105
tyler.erickson@mtu.edu
www.mtri.org
www.michiganview.org


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:30 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com