Re: PostgreSQL Log Info - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: PostgreSQL Log Info
Date
Msg-id Z0BqOL2dGd9oCqiy@depesz.com
Whole thread Raw
In response to Re: PostgreSQL Log Info  (Jethish Jethish <jethish777@gmail.com>)
List pgsql-general
On Fri, Nov 22, 2024 at 01:02:27PM +0530, Jethish Jethish wrote:
> Hi David,
> 
> If an select query is fired I need the query returned values needs to be
> logged in my PostgreSQL log file.
> 
> 
> For example if a select query returns 5 rows I need the same in the log
> file

Please note that you wrote what you want to do. And David asked about
use case. Which is different.

Basically the question can be summed into: *why* you think you want
that.

I don't think anything even remotely similar to this exists. You could,
of course, add it to Pg by changing sources (it is open source after
all), but given that such feature would be downright dangerous for huge
majority of situations, I don't expect it to become reality in mainline
Pg.

Best regards,

depesz




pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: CVE-2024-10979 Vulnerability Impact on PostgreSQL 11.10
Next
From: Karsten Hilbert
Date:
Subject: Re: PostgreSQL Log Info