Re: ERROR (Bug?) in RULE processing ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fritz Lehmann-Grube <lehmannf(at)math(dot)TU-Berlin(dot)DE>
Cc: pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: ERROR (Bug?) in RULE processing ?
Date: 2002-01-23 16:00:28
Message-ID: 2799.1011801628@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Fritz Lehmann-Grube <lehmannf(at)math(dot)TU-Berlin(dot)DE> writes:
> Can somebody tell what this errormessage means ?
> ERROR: fireRIRrules: failed to remove aggs from qual

The reason it's such an unfriendly error message is that it's an
internal "shouldn't ever happen" check.

What you actually did wrong was to use an aggregate function (count())
in the rule's WHERE clause. This should have been rejected much further
upstream, like when you tried to create the rule. That error test
doesn't seem to be there now though :-(

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jan Wieck 2002-01-23 16:06:09 Re: ERROR (Bug?) in RULE processing ?
Previous Message Frank Joerdens 2002-01-23 14:58:18 Re: importing data from Filemaker: weird newline characters