Is there a log file, or a method of logging all the SQL statements a postgres server processes. I can look at pg_stat_activity which tells me each postgres process and the current query running, however I wanted to see a log file, similar to SQL Servers Profiler, where I can capture all the SQL being run. I guess I could write some external process to poll the pg_stat_activity and collect current processors and SQL commands being run.
Theo
______________________________________________________________________ This email, including attachments, is intended only for the addressee and may be confidential, privileged and subject to copyright. If you have received this email in error, please advise the sender and delete it. If you are not the intended recipient of this email, you must not use, copy or disclose its content to anyone. You must not copy or communicate to others content that is confidential or subject to copyright, unless you have the consent of the content owner.
|