4

Is there an easy way to monitor Postgres db queries in a (Windows XP) environment. I'm testing some new code and suspect that in some cases queries are being duplicated/repeated under certain conditions.

What is the easiest/best way to do this - I just need something simple - basically the timestamp and syntax of the query.

1 Answer 1

4

Just add the following line into the config file:

log_min_duration_statement = 0  

After a restart your logfile contains all statements.

Sign up to request clarification or add additional context in comments.

1 Comment

A restart is not necessary. pg_ctl reload should be sufficient

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.