Re: Updateable Views?

From: Jonathan Gardner <jgardner(at)jonathangardner(dot)net>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Updateable Views?
Date: 2004-08-04 20:47:38
Message-ID: 200408041347.38635.jgardner@jonathangardner.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Tuesday 03 August 2004 08:38 pm, Greg Stark wrote:
> "Scott Marlowe" <smarlowe(at)qwest(dot)net> writes:
> > On Tue, 2004-08-03 at 13:05, CSN wrote:
> > > Just wondering, is updateable views slated for a
> > > future version of Postgresql? In addition to using
> > > rules that is.
> >
> > I would think that a basic fleshing out of the logic with some kind of
> > stored proc to make the views and triggers would likely get someone
> > started on the backend work. You know, a proof of concept thingy.
>
> I have some fears here. It seems everyone's first thought when they think
> about updateable views is to think about constructing rules on the views.
>
> How would that approach help with inline views? Things like:
>
> UPDATE (SELECT a+b AS x, c AS y FROM foo) SET c=1 WHERE x = 10
>
> It seems like starting with these types of views in the backend would be
> more productive than implementing something in rules. Once postgres can
> handle inline views it should be trivial to handle persistent views just
> like they're handled on selects.

I think you are putting the cart before the horse. We have to get things
working and get the rules figured out before we can start modifying the
backend. Once we get it all figured out, implemented, tested, and debugged,
then maybe we can start considering modifying the backend.

--
Jonathan Gardner
jgardner(at)jonathangardner(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Hicham G. Elmongui 2004-08-04 20:53:58 enforcing a join type
Previous Message Bill Moran 2004-08-04 20:29:31 Re: query result set caching

Browse pgsql-hackers by date

  From Date Subject
Next Message Hicham G. Elmongui 2004-08-04 20:53:58 enforcing a join type
Previous Message Andrew Dunstan 2004-08-04 20:37:45 Re: Timezone for %t log_line_prefix