knowledge-database (beta)

Current group: pgsql.hackers

Viewupdate: Inherit default expressions from columns

Viewupdate: Inherit default expressions from columns  
Bernd Helmle
 Re: Viewupdate: Inherit default expressions from columns  
Tom Lane
From:Bernd Helmle
Subject:Viewupdate: Inherit default expressions from columns
Date:Wed, 19 Jan 2005 01:21:32 +0100
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
From:Tom Lane
Subject:Re: Viewupdate: Inherit default expressions from columns
Date:Wed, 19 Jan 2005 00:07:18 -0500
Bernd Helmle 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
   

Copyright © 2006 knowledge-database   -   All rights reserved