Limiting line size in Postgres log files - Mailing list pgsql-admin

From Priancka Chatz
Subject Limiting line size in Postgres log files
Date
Msg-id CANnOdgYdTE0jpzS2hbrnRheTKMsLoTYqcjUMSHUGKt2xWx+j0w@mail.gmail.com
Whole thread Raw
Responses Re: Limiting line size in Postgres log files
Re: Limiting line size in Postgres log files
List pgsql-admin
Hi Pgsql-Admins,

Is there a way to set the max size of a line logged in Postgres log? Anything beyond a certain size/no-of-character should be logged only till the specified size and leave out the rest. I have an instance where the query statements are very long (more than 100MB) and I don't need the entire statement to be in my logfile. Lets say I need to log any statement only upto 10MB.
 Is this possible? Maybe a workaround?


Thank you in advance,
Priyanka C

pgsql-admin by date:

Previous
From: Imran Khan
Date:
Subject: Re: Postgresql 12.19 compatible with RHEL 9
Next
From: Laurenz Albe
Date:
Subject: Re: Limiting line size in Postgres log files