Logging query parmeters in auto_explain
Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
From: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
To: pgsql-hackers@lists.postgresql.org
Date: 2022-05-31T20:33:20Z
Lists: pgsql-hackers
Attachments
- 0001-Log-query-parameters-in-auto_explain.patch (text/x-diff)
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. - ilmari
Commits
-
autho_explain: Add GUC to log query parameters
- d4bfe4128170 16.0 landed
-
Refactor the TAP test of auto_explain
- 550bc0a6c0c6 16.0 landed