Subject: Truncate logs by max_log_size

From: diPhantxm <[email-masked]>
Date: Thu, 26 Sep 2024 21:30:08 +0300

Hi hackers,

I would like to suggest a patch to truncate some long queries. I believe
sometimes there is no need to log a query containing some gigabytes of
blob, for example. In patch a new parameter, named max_log_size, is
introduced. It defines the maximum size of logged query, in bytes.
Everything beyond that size is truncated.

Best regards,
Kirill Gavrilov