Re: updating on views - Mailing list pgsql-hackers

From Gavin Sherry
Subject Re: updating on views
Date
Msg-id Pine.LNX.4.21.0211271745120.10533-100000@linuxworld.com.au
Whole thread Raw
In response to Re: updating on views  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-hackers
On Tue, 26 Nov 2002, Stephan Szabo wrote:

> Well, it depends.  SQL updatable views are fairly limited from what I
> remember and the general write your own update rules is much broader, so I
> doubt anyone got terribly excited by doing the limited version. It would
> take some work to define what sort of view queries are acceptable for what
> sort of updates and then make the appropriate rules (imagine queries with

SQL99 says that all columns in the view definition (ie, the SQL query
which defines the view) must also be updateable. This, of course,
requires some checking. We could do this here. I think, however, that it
would be much cleaner to implement this correctly through the planner and
executor instead of hacking it through the rewriter. Of course, that means
lots of code. 

Insertable-into and updateable views are certainly a very important
feature which Postgres is lacking. Maybe we should implement this the easy
way first and then, to increase performance, correctly -- at some later
point.

Gavin



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Boolean casting in 7.3 -> changed?
Next
From: "Shridhar Daithankar"
Date:
Subject: Re: Auto Vacuum Daemon (again...)