Limiting line size in Postgres log files

From: Priancka Chatz <pc9926(at)gmail(dot)com>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Limiting line size in Postgres log files
Date: 2024-06-26 11:02:17
Message-ID: CANnOdgYdTE0jpzS2hbrnRheTKMsLoTYqcjUMSHUGKt2xWx+j0w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2024-06-26 12:19:33 Re: Limiting line size in Postgres log files
Previous Message Imran Khan 2024-06-25 19:22:57 Re: Postgresql 12.19 compatible with RHEL 9