Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
This is called auditing. What have you learned about auditing so far? – vonPryz Nov 15 '13 at 10:53
i am new to postgresql so i dont know auditing.Is there any other option from postgreSql logging system. – sharad vishe Nov 15 '13 at 13:07

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.