public inbox for [email protected]  
help / color / mirror / Atom feed
From: Adrian Klaver <[email protected]>
To: Jethish Jethish <[email protected]>
To: [email protected]
Subject: Re: PostgreSQL Log Info
Date: Fri, 22 Nov 2024 08:32:57 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKeSjMiBZuMX+R3mTmxj-5DUqKN9disMALRnTPv-5B3+CUn6Hg@mail.gmail.com>
References: <CAKeSjMiBZuMX+R3mTmxj-5DUqKN9disMALRnTPv-5B3+CUn6Hg@mail.gmail.com>

On 11/21/24 21:02, Jethish Jethish wrote:
> Hi Everyone,
> 
> Is it possible to log the rows returned by a query in the PostgreSQL logs?

https://github.com/pgaudit/pgaudit/blob/main/README.md

"pgaudit.log_rows

Specifies that audit logging should include the number of rows retrieved 
or affected by a statement. When enabled the rows field will be included 
after the parameter field.

The default is off."

-- 
Adrian Klaver
[email protected]







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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: PostgreSQL Log Info
  In-Reply-To: <[email protected]>

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

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