Thanks for the suggestion, but
CREATE TRIGGER trigger_foo BEFORE INSERT ON foo for each row EXECUTE
PROCEDURE trigger_foo();
gives me the same error.
2011/2/10 Vick Khera <vivek(at)khera(dot)org>:
> On Thu, Feb 10, 2011 at 9:29 AM, A B <gentosaker(at)gmail(dot)com> wrote:
>> Can someone help me spot the error? :-)
>>
>
> use a BEFORE INSERT trigger?
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>