Re: Updateable views... - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Updateable views...
Date
Msg-id 87ptp57nqd.fsf@stark.dyndns.tv
Whole thread Raw
In response to Re: Updateable views...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Eric D Nielsen <nielsene@MIT.EDU> writes:
> > In either case is this a place where "exceeding" the spec would be a good 
> > thing or a bad thing?
> 
> Unless there is an obvious definition of what updating a join means
> (obvious not only to the implementor, but to the user) I think this
> is dangerous territory.

Joins are a *BIG* part of the reason people want updateable views. In every
single case that I updated a view it was a join. Just being able to update
subsets of tables or restricted sets of columns is really a fairly trivial use
of a powerful feature.

In Oracle the constraint is fairly straightforward (at least to describe): 
for each column you're updating the primary key of the table it came from has
to be present in the view.


-- 
greg



pgsql-hackers by date:

Previous
From: Curt Sampson
Date:
Subject: Re: Updateable views...
Next
From: "scott.marlowe"
Date:
Subject: Re: Win32 Powerfail testing