Re: Pass parameters to a TCL function - Mailing list pgsql-general

From Josué Maldonado
Subject Re: Pass parameters to a TCL function
Date
Msg-id bj2sia$2jbf$1@news.hub.org
Whole thread Raw
In response to Pass parameters to a TCL function  (Josué Maldonado <josue@lamundial.hn>)
Responses Re: Pass parameters to a TCL function  (Jan Wieck <JanWieck@Yahoo.com>)
List pgsql-general
I'm sorry, found my mistake, the way I'm calling the function is wrong
it should be "audit_log" ('xtable','internal'), it works.

Thanks


Josué Maldonado wrote:

> Hello list,
>
> I have a tcl trigger function called audit_log(varchar, bpchar), if I
> write a trigger in a table
>
> CREATE TRIGGER tg_test
>   AFTER INSERT OR UPDATE OR DELETE
>   ON xtable
>   FOR EACH ROW
>   EXECUTE PROCEDURE audit_log('xtable','internal');
>
> it gives this error:
>
> ERROR:  CreateTrigger: function audit_log() does not exist
>
> I also tried to make a kinda wrapper plpgsql trigger to call the
> audit_log function but didn't work, any idea what's wrong?, how do I
> pass parameters to a trigger function?
>
> Thanks in advance,
>
> Josue Maldonado.
>


pgsql-general by date:

Previous
From: Josué Maldonado
Date:
Subject: how to call a TCL function from within a plpgsql trigger?
Next
From: Doug McNaught
Date:
Subject: Re: Debian Woody 7.3.4 packages?