I am not exactly sure how to achieve just that, but have you checked out something like https://github.com/dalibo/pgbadger? We use it here and love it. It parses out all your queries and does a great analysis on them. I have a script that emails me a report every morning. -jason On March 31, 2014 at 7:33:39 AM, Sergey Arlashin (sergeyarl.maillist@xxxxxxxxx) wrote:
This transmission contains confidential and privileged information intended solely for the party identified above. If you receive this message in error, you must not use it or convey it to others. Please destroy it immediately and contact the sender at (303) 386-3955 or by return e-mail to the sender. |