Re: Bug (8.4beta): FailedAssertion("!(bms_is_subset(relids, qualscope))", File: "initsplan.c", Line: 915)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>, Stefan Huehner <stefan(at)huehner(dot)org>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug (8.4beta): FailedAssertion("!(bms_is_subset(relids, qualscope))", File: "initsplan.c", Line: 915)
Date: 2009-05-06 18:07:37
Message-ID: 22479.1241633257@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Heikki Linnakangas wrote:
>> Note that the function is immutable, and the argument in the query is a
>> constant. The planner simply runs the function and replaces the function
>> call with the result.

> The planner runs the function? Ok, neat -- I didn't know it did that.

See eval_const_expressions. This is absolutely no different from
reducing 1=1 to TRUE.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Much 2009-05-06 19:41:22 WARNING: silent data corruption possible from PL/ruby 0.5.0 (after Ruby upgrade)
Previous Message Alvaro Herrera 2009-05-06 17:48:32 Re: Bug (8.4beta): FailedAssertion("!(bms_is_subset(relids, qualscope))", File: "initsplan.c", Line: 915)