Trigger (Calling a Procedure)

From: "Harpreet Dhaliwal" <harpreet(dot)dhaliwal01(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Trigger (Calling a Procedure)
Date: 2006-08-16 05:35:47
Message-ID: d86a77ef0608152235y221b7e49lae493246c02421d2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm trying to create a trigger with the following definition:

CREATE TRIGGER insert_price_change AFTER INSERT OR DELETE OR UPDATE ON
raw_email
FOR EACH ROW EXECUTE PROCEDURE add_one(1);

Procedure / Function add_one has the following definition

CREATE FUNCTION add_one(integer) RETURNS integer
AS '/usr/local/pgsql/jsb/add_one', 'add_one'
LANGUAGE C STRICT;

function add_one is running fine.

When I try to create the trigger insert_price_change, it throws me the
follwoing error:

ERROR: function add_one() does not exist

However, I can see function add_one(int4) as one of the functions in
pgadmin.

Don't know whats going on wrong.

Thanks,

~Harpreet

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2006-08-16 05:38:02 Re: DB insert Error
Previous Message Jasbinder Bali 2006-08-16 05:20:08 Re: DB insert Error