pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Garfield Lewis <garfield.lewis@lzlabs.com>
To: rihad <rihad@mail.ru>
To: pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: Currently running queries with actual arguments?
Date: Thu, 23 Sep 2021 15:58:17 +0000
Message-ID: <FB2D6F2B-FCDF-4195-8092-9FA0A0515EC3@lzlabs.com> (raw)
In-Reply-To: <12669af6-901c-4b7f-834b-e17cf99e94df@mail.ru>
References: <12669af6-901c-4b7f-834b-e17cf99e94df@mail.ru>

The way I normally get this info is by setting the following:

log_statement = 'all'

then the arguments will be printed in the postgres.log file. There could be some other way but that is what I know.

-- 
Regards,
Garfield

On 2021-09-23, 11:33 AM, "rihad" <rihad@mail.ru> wrote:

    Hi, is it possible to view the list of currently running queries with 
    $1, $2 etc replaced with the actual arguments?






view thread (4+ messages)  latest in thread

Message-ID: <FB2D6F2B-FCDF-4195-8092-9FA0A0515EC3@lzlabs.com>
Permalink:  ../FB2D6F2B-FCDF-4195-8092-9FA0A0515EC3@lzlabs.com/
Also on:    postgresql.org/message-id/FB2D6F2B-FCDF-4195-8092-9FA0A0515EC3@lzlabs.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: garfield.lewis@lzlabs.com, rihad@mail.ru
  Subject: Re: Currently running queries with actual arguments?
  In-Reply-To: <FB2D6F2B-FCDF-4195-8092-9FA0A0515EC3@lzlabs.com>
  References: <12669af6-901c-4b7f-834b-e17cf99e94df@mail.ru> <FB2D6F2B-FCDF-4195-8092-9FA0A0515EC3@lzlabs.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