]> git.ipfire.org Git - thirdparty/postgresql.git/commit
autho_explain: Add GUC to log query parameters
authorMichael Paquier <michael@paquier.xyz>
Wed, 6 Jul 2022 00:55:30 +0000 (09:55 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 6 Jul 2022 00:55:30 +0000 (09:55 +0900)
commitd4bfe41281705c1bcb7093b3d07ce5ff1114341b
tree40e6a7b49f20aff8a8fef57191f70df8b2d5c4f7
parent08385ed261965c4e1604e357330ac5bf9755b01a
autho_explain: Add GUC to log query parameters

auto_explain.log_parameter_max_length is a new GUC part of the
extension, similar to the corresponding core setting, that controls the
inclusion of query parameters in the logged explain output.

More tests are added to check the behavior of this new parameter: when
parameters logged in full (the default of -1), when disabled (value of
0) and when partially truncated (value different than the two others).

Author: Dagfinn Ilmari MannsÃ¥ker
Discussion: https://postgr.es/m/87ee09mohb.fsf@wibble.ilmari.org
contrib/auto_explain/auto_explain.c
contrib/auto_explain/t/001_auto_explain.pl
doc/src/sgml/auto-explain.sgml
src/backend/commands/explain.c
src/include/commands/explain.h