Re: Nonexistent NEW relation in some places of rules

From: Denis Zaitsev <zzz(at)anda(dot)ru>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Nonexistent NEW relation in some places of rules
Date: 2003-07-30 21:02:52
Message-ID: 20030731030252.A2700@natasha.ward.six
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, Jul 29, 2003 at 06:32:44PM -0400, Tom Lane wrote:
> The problem is that the rule gets expanded into something rather like
>
> insert into a select ... from new, produce(new.b);
>
> and we can't support that. If we ever add support for SQL99's
> LATERAL(), it might help improve matters.

Thanks. I was suspecting something like. Does the presence of this
leak mean that such a selects are needed very rarely? Or does it mean
that some well-known workaround exists?

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Poole 2003-07-30 21:12:47 Re: One to many query question
Previous Message Dave Dribin 2003-07-30 20:27:36 Re: One to many query question