Postgresql – store log of update,insert operation of postgresql user

logspostgresql

I have to create postgresql user in postgresql 9.0 and give grant on my database xxx and whose all log of insert and update operation should be stored in one external log file so that i can have all information about his operations performed on my database.
How i can achieved this in my postgresql 9.0.
please suggest me any way.

Best Answer

Have a look at the Postgresql wiki page where there are comprehensive examples of audit mechanisms for both Postgresql 9.0 and 9.1+