Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Postgres triggers: planting external arguments?

Status
Not open for further replies.

YonmaN

Programmer
Jun 4, 2002
12
0
0
IL
Heya guys

I am now attempting to create a logging trigger that will be performed on every insertion to it's tracked table.

However, I'd also like to track the user's IP address and his userid. This would mean to me, that I have to "plant" external arguments, besides the "NEW" element, that holds these two parameters for my use.

Is this possible?
could you give me an example in pl/pgSql?

tnx :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top