Re: Rules with "Where" Referencing Other Tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ian Harding" <ianh(at)tpchd(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Rules with "Where" Referencing Other Tables
Date: 2003-02-04 23:15:03
Message-ID: 18834.1044400503@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Ian Harding" <ianh(at)tpchd(dot)org> writes:
> I got away with this under 7.2.3. I didn't read the docs. However, under 7.3.1, it blew up the backend. Since there is obviously a good reason for this prohibition, why does the system allow creation of rules that reference other tables in the where clause?
> Here is a very simple case. It doesn't blow anything up.

Would you show us a case where it *does* blow up?

I'd prefer not to forbid subselects entirely in rule WHERE clauses,
but if we have to ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Smith 2003-02-04 23:20:58 Re: UPDATE slow
Previous Message scott.marlowe 2003-02-04 23:11:36 Re: UPDATE slow [Viruschecked]