pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Mladen Gogala <gogala.mladen@gmail.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: log_statement GUC parameter
Date: Thu, 12 Aug 2021 13:28:55 -0700
Message-ID: <e9ab9151-6f4d-e7bf-d5d5-0ec3d06695cf@aklaver.com> (raw)
In-Reply-To: <510207d8-8895-c3cb-e0a1-55135e4ce4f7@gmail.com>
References: <510207d8-8895-c3cb-e0a1-55135e4ce4f7@gmail.com>

On 8/12/21 1:19 PM, Mladen Gogala wrote:
> Hi!
> 

> The idea is to log all statements by the particular user, not by 
> everybody. The user in question uses Weblogic 12.2.1.4  and creates a 
> connection pool so I need to find out which statements are the longest 
> running ones and make them perform.

Would pg_stat_statements work for you?:

https://www.postgresql.org/docs/current/pgstatstatements.html

> 
> Regards
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (9+ messages)  latest in thread

Message-ID: <e9ab9151-6f4d-e7bf-d5d5-0ec3d06695cf@aklaver.com>
Permalink:  ../e9ab9151-6f4d-e7bf-d5d5-0ec3d06695cf@aklaver.com/
Also on:    postgresql.org/message-id/e9ab9151-6f4d-e7bf-d5d5-0ec3d06695cf@aklaver.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, gogala.mladen@gmail.com
  Subject: Re: log_statement GUC parameter
  In-Reply-To: <e9ab9151-6f4d-e7bf-d5d5-0ec3d06695cf@aklaver.com>
  References: <510207d8-8895-c3cb-e0a1-55135e4ce4f7@gmail.com> <e9ab9151-6f4d-e7bf-d5d5-0ec3d06695cf@aklaver.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