Search Postgresql Archives

Trigger (Calling a Procedure)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux