pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
SQL history.
4+ messages / 3 participants
[nested] [flat]

* SQL history.
@ 2017-10-27 10:08  Syed Asim Shah <asim.shah@telenor.com.pk>
  0 siblings, 1 reply; 4+ messages in thread

From: Syed Asim Shah @ 2017-10-27 10:08 UTC (permalink / raw)
  To: pgsql-admin

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.

BR!
Asim Shah.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: SQL history.
@ 2017-10-27 13:58  David G. Johnston <david.g.johnston@gmail.com>
  parent: Syed Asim Shah <asim.shah@telenor.com.pk>
  0 siblings, 2 replies; 4+ messages in thread

From: David G. Johnston @ 2017-10-27 13:58 UTC (permalink / raw)
  To: Syed Asim Shah <asim.shah@telenor.com.pk>; +Cc: pgsql-admin

On Fri, Oct 27, 2017 at 3:08 AM, Syed Asim Shah <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.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: SQL history.
@ 2017-10-27 14:59  Vianello, Daniel A <Daniel.Vianello@charter.com>
  parent: David G. Johnston <david.g.johnston@gmail.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Vianello, Daniel A @ 2017-10-27 14:59 UTC (permalink / raw)
  To: David G. Johnston <david.g.johnston@gmail.com>; Syed Asim Shah <asim.shah@telenor.com.pk>; +Cc: 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@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.


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: SQL history.
@ 2017-10-30 07:33  Syed Asim Shah <asim.shah@telenor.com.pk>
  parent: David G. Johnston <david.g.johnston@gmail.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Syed Asim Shah @ 2017-10-30 07:33 UTC (permalink / raw)
  To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-admin

Dear David,

Thanks for the update. What will be the performance impact after enabling “log_statement” feature (on high transactional databases).

BR!
Asim Shah.

From: David G. Johnston [mailto:david.g.johnston@gmail.com]
Sent: Friday, October 27, 2017 6:59 PM
To: Syed Asim Shah
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.

________________________________
This e-mail has been scanned for viruses by Forefront Protection @ Telenor Pakistan.


^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2017-10-30 07:33 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-10-27 10:08 SQL history. Syed Asim Shah <asim.shah@telenor.com.pk>
2017-10-27 13:58 ` David G. Johnston <david.g.johnston@gmail.com>
2017-10-27 14:59   ` Vianello, Daniel A <Daniel.Vianello@charter.com>
2017-10-30 07:33   ` Syed Asim Shah <asim.shah@telenor.com.pk>

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