Re: [GENERAL] Getting user who fired a trigger

2004-07-07 Thread Richard Huxton
Anton Nikiforov wrote: Could somene supply me with a solution or documentation part that i should read? Can't remember which part it is, but you want one of: SELECT CURRENT_USER; SELECT SESSION_USER; test=# SELECT CURRENT_USER; current_user -- anton (1 row) test=# SELECT SESSION

Re: [GENERAL] Getting user who fired a trigger

2004-07-07 Thread Anton Nikiforov
Thanks for the replay, Richard. Richard Huxton wrote: Anton Nikiforov wrote: Dear All, I have made a trigger procedure that logs all table's changes to the log_table in XML format, but i do need to log a user who did that and not succsessful with this. The documentation (including "37.10. Trigger

Re: [GENERAL] Getting user who fired a trigger

2004-07-07 Thread Richard Huxton
Anton Nikiforov wrote: Dear All, I have made a trigger procedure that logs all table's changes to the log_table in XML format, but i do need to log a user who did that and not succsessful with this. The documentation (including "37.10. Trigger Procedures") give me nothing. Could somene supply me

[GENERAL] Getting user who fired a trigger

2004-07-07 Thread Anton Nikiforov
Dear All, I have made a trigger procedure that logs all table's changes to the log_table in XML format, but i do need to log a user who did that and not succsessful with this. The documentation (including "37.10. Trigger Procedures") give me nothing. Could somene supply me with a solution or docu