From: | Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org> |
---|---|
To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Logging query parmeters in auto_explain |
Date: | 2022-06-06 17:12:02 |
Message-ID: | 875yldn2cd.fsf@wibble.ilmari.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org> writes:
> Hi hackers,
>
> Inspired by a question on IRC, I noticed that while the core statement
> logging system gained the option to log statement parameters in PG 13,
> auto_explain was left out.
>
> Here's a patch that adds a corresponding
> auto_explain.log_parameter_max_length config setting, which controls the
> "Query Parameters" node in the logged plan. Just like in core, the
> default is -1, which logs the parameters in full, and 0 disables
> parameter logging, while any other value truncates each parameter to
> that many bytes.
I've added added it to the upcoming commitfest:
https://commitfest.postgresql.org/38/3660/
- ilmari
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Davis | 2022-06-06 17:34:58 | Re: oat_post_create expected behavior |
Previous Message | Mark Dilger | 2022-06-06 17:04:47 | Re: How about a psql backslash command to show GUCs? |