By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

Triggers in PostgreSQL

P: 2
I have read few topics on Triggers..

I was just wondering if it is possible to have a parameter to a function from the external environment..

I mean...
I am into PHP and PostgreSQL and we want to integrate logs in our system, to keep track of the operations for each and every user. So, is it possible to acquire the user's id and use it in a function???
Feb 3 '09 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 700
You can define function arguments while creating trigger (no while creating function). You can use arguments value via TG_ARG[] table.
For more see here http://www.postgresql.org/docs/8.1/i...l-trigger.html
Feb 3 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.