Re: minimal update - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: minimal update
Date
Msg-id 4908BDF9.8020205@dunslane.net
Whole thread Raw
In response to Re: minimal update  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: minimal update
List pgsql-hackers

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


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: PostgreSQL network discovery
Next
From: Alvaro Herrera
Date:
Subject: Re: PostgreSQL network discovery