Triggers in PostgreSQL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jacinthe0020
    New Member
    • Feb 2009
    • 2

    Triggers in PostgreSQL

    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???
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    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

    Comment

    Working...