From: | "Vianello, Daniel A" <Daniel(dot)Vianello(at)charter(dot)com> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Syed Asim Shah <asim(dot)shah(at)telenor(dot)com(dot)pk> |
Cc: | "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: SQL history. |
Date: | 2017-10-27 14:59:16 |
Message-ID: | 91e9685f3a0e4b0faaefe93ebb1bc37b@KSTLMEXGP001.CORP.CHARTERCOM.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
pgBadger may also be useful for you. It analyzes logs and creates graphs of query traffic.
http://dalibo.github.io/pgbadger/
From: pgsql-admin-owner(at)postgresql(dot)org [mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of David G. Johnston
Sent: Friday, October 27, 2017 8:59 AM
To: Syed Asim Shah <asim(dot)shah(at)telenor(dot)com(dot)pk>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] SQL history.
On Fri, Oct 27, 2017 at 3:08 AM, Syed Asim Shah <asim(dot)shah(at)telenor(dot)com(dot)pk<mailto:asim(dot)shah(at)telenor(dot)com(dot)pk>> wrote:
Dear Team,
We are having POSGRESQL version 9.6 installed on OS version Linux REDHAT 7.2. How we can fetch historical SQL executions trend of last 24 hours.
See
https://www.postgresql.org/docs/9.6/static/pgstatstatements.html
and
https://www.postgresql.org/docs/9.6/static/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHAT (log_statement)
For possibilities. Neither are installed/configured/enabled by default to capture the information you seek.
David J.
E-MAIL CONFIDENTIALITY NOTICE:
The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited.
From | Date | Subject | |
---|---|---|---|
Next Message | Syed Asim Shah | 2017-10-30 07:33:18 | Re: SQL history. |
Previous Message | David G. Johnston | 2017-10-27 13:58:32 | Re: SQL history. |