Re: SQL history.

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: 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 13:58:32
Message-ID: CAKFQuwZT_2SuTn8Lry-PeeOC04b=+3=5Vq=XZmKsfZUxTZA02A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Vianello, Daniel A 2017-10-27 14:59:16 Re: SQL history.
Previous Message Ferrell, Denise D CTR NSWCDD, H11 2017-10-27 13:35:08 Re: [Non-DoD Source] Re: Database Error