pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vianello, Daniel A <Daniel.Vianello@charter.com>
To: David G. Johnston <david.g.johnston@gmail.com>
To: Syed Asim Shah <asim.shah@telenor.com.pk>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: SQL history.
Date: Fri, 27 Oct 2017 14:59:16 +0000
Message-ID: <91e9685f3a0e4b0faaefe93ebb1bc37b@KSTLMEXGP001.CORP.CHARTERCOM.com> (raw)
In-Reply-To: <CAKFQuwZT_2SuTn8Lry-PeeOC04b=+3=5Vq=XZmKsfZUxTZA02A@mail.gmail.com>
References: <C35F307BE15BEA4585014E7B3753CC96FDFB763229@ISB-EXMB-CLUS.telenor.com.pk>
	<CAKFQuwZT_2SuTn8Lry-PeeOC04b=+3=5Vq=XZmKsfZUxTZA02A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of David G. Johnston
Sent: Friday, October 27, 2017 8:59 AM
To: Syed Asim Shah <asim.shah@telenor.com.pk>
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] SQL history.

On Fri, Oct 27, 2017 at 3:08 AM, Syed Asim Shah <asim.shah@telenor.com.pk<mailto:asim.shah@telenor.com.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.


view thread (4+ messages)  latest in thread

Message-ID: <91e9685f3a0e4b0faaefe93ebb1bc37b@KSTLMEXGP001.CORP.CHARTERCOM.com>
Permalink:  ../91e9685f3a0e4b0faaefe93ebb1bc37b@KSTLMEXGP001.CORP.CHARTERCOM.com/
Also on:    postgresql.org/message-id/91e9685f3a0e4b0faaefe93ebb1bc37b@KSTLMEXGP001.CORP.CHARTERCOM.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: Daniel.Vianello@charter.com, david.g.johnston@gmail.com, asim.shah@telenor.com.pk
  Subject: Re: SQL history.
  In-Reply-To: <91e9685f3a0e4b0faaefe93ebb1bc37b@KSTLMEXGP001.CORP.CHARTERCOM.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox