Re: Bug in triggers - Mailing list pgsql-bugs

From Robert Haas
Subject Re: Bug in triggers
Date
Msg-id 603c8f071003051810n6eceedfej2d84777ddecd003f@mail.gmail.com
Whole thread Raw
In response to Re: Bug in triggers  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Bug in triggers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Fri, Mar 5, 2010 at 5:32 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>>> On Wed, Mar 3, 2010 at 9:53 PM, Robert Haas <robertmhaas@gmail.com> wro=
te:
>>> It does seem weird that assigning NEW to var changes the value; I'm
>>> not sure why that happens. =A0Is that what you're asking about?
>
>> Anyone else have an opinion on whether this is a bug?
>
> It's arguably a bug, but since we lack consensus on whether NULL and
> ROW(NULL,NULL,...) are the same thing, it's difficult to make a
> bulletproof case either way. =A0In any case nothing is likely to get done
> about it in the near term because it's wired into plpgsql's
> implementation. =A0Changing from row to record representation of such
> variables is possible but would probably have side effects, ie, it would
> create new compatibility issues of unknown seriousness. =A0I'm not too
> optimistic about the performance implications either.
>
> I think it might be material for a TODO item, but I don't want to
> consider any immediate fixes.

Have we or can we somehow document why this happens?

...Robert

pgsql-bugs by date:

Previous
From: Chris Travers
Date:
Subject: Re: Bug in triggers
Next
From: Oleg Serov
Date:
Subject: Re: Bug in triggers