Re: [PATCHES] Updatable views

From: Bernd Helmle <mailings(at)oopsware(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org, Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Subject: Re: [PATCHES] Updatable views
Date: 2006-09-01 18:48:53
Message-ID: FF59C2B6F66A044758DF3128@[172.26.14.247]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

--On Freitag, September 01, 2006 11:41:16 -0400 Tom Lane
<tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

>
> So in other words, views on serial columns don't work? I don't think
> that's going to be acceptable.
>

They work in such a case that someone isn't allowed to put a volatile
function in an update query....

>
> Not really worse than what the rewriter is doing already --- in fact,
> I think it's isomorphic to what would happen to the rule qual
> expressions in your existing patch.
>

Currently you don't have to rewrite the rule conditions itself every
time you apply them to the query tree since they are stored in pg_rewrite
matching all various (reversed) varattno's, resno's and whatever.
If i understand correctly you need to do that with constraints every time
you fire an update query on a view for each underlying relation....

>
> I'm about to propose that we should try to go beta next week (see
> forthcoming message). If you can strip down your patch to avoid the
> multi-eval problems in the next couple of days, I'm still willing to

Depends on how many days "couple of days" are.....if you mean the next
three days
then definitely not, since i'm afk for the whole upcoming weekend. Bad
timing, but
it's not deferrable.... :(

> consider it, but at the moment I'm assuming that it needs to be held
> for 8.3.

Well, i'll see what i can do next week....it's a little bit disappointing
that these problems
raises so late, but that's no one's fault since there are many side effects
of the rewriting
system involved....

Many thanks for your comments.

Bernd

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2006-09-01 18:52:05 Re: Getting a move on for 8.2 beta
Previous Message Joshua D. Drake 2006-09-01 18:42:10 Re: Getting a move on for 8.2 beta