Re: Help with tracking! - Mailing list pgsql-general

From Shoaib Mir
Subject Re: Help with tracking!
Date
Msg-id p2tbf54be871005031723w3021b271h75342afe659f27ad@mail.gmail.com
Whole thread Raw
In response to Help with tracking!  (Đỗ Ngọc Trí Cường<seminoob@gmail.com>)
List pgsql-general
2010/4/19 Đỗ Ngọc Trí Cường <seminoob@gmail.com>
Dear all,

I've a problem but I search all the help file and can't find the solution.

I want to track all action of a specify role on all or one schema in database.

Can you help me?

Thanks a lot and Best Regard,


Setup your log_line_prefix and log_statement setting properly in postgresql.conf so that you get the user info and other appropriate details. After that you can tail the DB server log file and grep for that specific user to get what sort of SQL is been executed.

--
Shoaib Mir
http://shoaibmir.wordpress.com/

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: GeSHi module for Postgresql?
Next
From: Tom Lane
Date:
Subject: Re: pg9 beta1, make check fails