Bingo! That was it.. Thank you.
BTW, is this behavior documented (no error message)? It should be.
Even better, make plpgsql a little nicer ;)
-Cedar
On Wed, 7 Mar 2001, Jeffrey Lyon wrote:
> Do you have a trigger applied against this record on DELETE? If so, are
> you returning NEW or OLD? I think that you need to return NEW on an
> UPDATE or INSERT and an OLD on DELETE.
>
> Jeffrey