Log statements by username

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

We have a database that is accessible to quite a few users. (Using their own account name of course) Our goal is to be able to log the users UPDATE statements, so that we can track down changes that were not done by our application software.

Altering the log_statement parameter is not an option, since this would generate enormous amounts of statements. I'm interested in certain users only. (or in fact all but one user)

One approach i have tried is to create a RULE that filters queries from the application software user out. It then updates a log table for every update, but i am unable to get a hold of the actual query that is executing.

Any ideas?


Regards,
David

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
      choose an index scan if your joining column's datatypes do not
      match

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux