Alvaro Herrera wrote:
> Andrew Dunstan escribió:
>
>
>> + /* make sure it's called as a trigger */
>> + if (!CALLED_AS_TRIGGER(fcinfo))
>> + elog(ERROR, "suppress_redundant_updates_trigger: must be called as trigger");
>>
>
> Shouldn't these all be ereport()?
>
>
Good point.
I'll fix them.
Maybe we should fix our C sample trigger, from which this was taken.
cheers
andrew