Re: PostgreSQL Log Info

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Jethish Jethish <jethish777(at)gmail(dot)com>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: PostgreSQL Log Info
Date: 2024-11-22 16:02:54
Message-ID: 3aa689a8-316a-4f39-8755-4e0b5d98e955@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/21/24 23:32, 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

What if the query returns 500,000 rows?

What is the purpose of retaining this information?

>
>
> On Fri, Nov 22, 2024, 10:49 AM David G. Johnston
> <david(dot)g(dot)johnston(at)gmail(dot)com <mailto:david(dot)g(dot)johnston(at)gmail(dot)com>> wrote:
>
> On Thursday, November 21, 2024, Jethish Jethish
> <jethish777(at)gmail(dot)com <mailto:jethish777(at)gmail(dot)com>> wrote:
>
> Is it possible to log the rows returned by a query in the
> PostgreSQL logs?
>
>
> As a practical matter, no.  That said, given one can get row
> contents into the server log in various ways, what is the use case
> for why this capability is thought to be needed?
>
> David J.
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2024-11-22 16:15:22 Re: PostgreSQL Log Info
Previous Message Laurenz Albe 2024-11-22 15:52:46 Re: CVE-2024-10979 Vulnerability Impact on PostgreSQL 11.10