Hi Kirill On 31.01.25 11:46, Kirill Gavrilov wrote: > Sorry for the long silence. I fixed the indentation and a trailing > whitespace. Should look fine now.
The patch applies cleanly, the documentation is clear, and all tests pass. It is possible to change this new parameter session-wise, which is nice! postgres=# SET max_log_size TO 7; SET postgres=# SHOW max_log_size; max_log_size -------------- 7B (1 row) The default value now is clear and it corresponds to the value set on postgresql.conf: #max_log_size = 0 # max size of logged statement postgres=# SHOW max_log_size; max_log_size -------------- 0 (1 row) Logs are truncated as expected: postgres=# SET max_log_size TO 6; SET postgres=# SELECT length('CALL xyz;'); length -------- 9 (1 row) postgres=# CALL xyz; ERROR: syntax error at or near ";" LINE 1: CALL xyz; log entry: 2025-02-03 10:58:19.975 CET [123945] ERROR: syntax error at or near ";" at character 9 2025-02-03 10:58:19.975 CET [123945] STATEMENT: CALL x The issue with log entry sizes for queries containing special characters was resolved by setting the unit to bytes. Overall, everythingLGTM. The new status of this patch is: Ready for Committer Jim