Hi, I am looking for a way to get the original query that caused a trigger to fire. I need to be able to get this query either inside the trigger itself (and then send it to the function the trigger calls) or get it in the end function. Is this doable? The reason i am asking is that I would like to be able to send a variable (this variable would come from php where the original query is executed) to the end function called by the trigger. Any help with this would be greatly appreciated. Thanks, Dan ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster