Re: BUG #2447: backend crashes when plpgsql functions are used in rules

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "michael crozier" <crozierm(at)conducivetech(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2447: backend crashes when plpgsql functions are used in rules
Date: 2006-05-21 23:12:19
Message-ID: 19646.1148253139@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"michael crozier" <crozierm(at)conducivetech(dot)com> writes:
> Using a function invocation in the WHERE expression of a RULE causes the
> backend to crash.

It's not the function, it's the whole-row Var (ie, unqualified "NEW")
that doesn't work. Whole-row Vars in rules never worked at all before
8.0, and evidently they don't work in all contexts in 8.0 either :-(.

It's unlikely we'll try to make this actually work in 8.0, but I'll
look into erroring out cleanly instead of crashing. Unfortunately
it's too late for 8.0.8 :-(

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2006-05-22 00:49:46 Re: BUG #2446: FATAL: Could not write to statistics collector
Previous Message Tom Lane 2006-05-21 21:46:34 Re: BUG #2445: incompatibility: realloc <> repalloc