Unix Technical Forum

Viewupdate: Inherit default expressions from columns

This is a discussion on Viewupdate: Inherit default expressions from columns within the pgsql Hackers forums, part of the PostgreSQL category; --> For automatic view update rules we are planning to implement column default value inheritance, so that the view's column ...


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-11-2008, 02:22 AM
Bernd Helmle
 
Posts: n/a
Default Viewupdate: Inherit default expressions from columns

For automatic view update rules we are planning to implement column default
value inheritance, so that the view's column definition inherits from their
base table columns (and nobody has to use an explicit ALTER TABLE view
ALTER col SET DEFAULT ... ). Note that we will do that only for views,
which are updateable (means that we can create rules for that view). I
wonder if there are any side effects, like security issues or other stuff
that will be broken by that (nothing comes currently to my mind, besides
the fact that ALTERing the base tables default expression later won't be
triggered to the view.....).

What does folks think about that, any comments?


--

Bernd

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 02:22 AM
Tom Lane
 
Posts: n/a
Default Re: Viewupdate: Inherit default expressions from columns

Bernd Helmle <mailings@oopsware.de> writes:
> For automatic view update rules we are planning to implement column default
> value inheritance, so that the view's column definition inherits from their
> base table columns (and nobody has to use an explicit ALTER TABLE view
> ALTER col SET DEFAULT ... ). Note that we will do that only for views,
> which are updateable (means that we can create rules for that view).


Just so you un-break pg_dump afterwards.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.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 08:37 AM.


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