pgsql: autho_explain: Add GUC to log query parameters - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: autho_explain: Add GUC to log query parameters
Date
Msg-id E1o8tLT-001OxX-Dy@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d4bfe41281705c1bcb7093b3d07ce5ff1114341b

Modified Files
--------------
contrib/auto_explain/auto_explain.c        | 15 ++++++++++
contrib/auto_explain/t/001_auto_explain.pl | 48 ++++++++++++++++++++++++++++++
doc/src/sgml/auto-explain.sgml             | 19 ++++++++++++
src/backend/commands/explain.c             | 22 ++++++++++++++
src/include/commands/explain.h             |  1 +
5 files changed, 105 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Tighten pg_upgrade's new check for non-upgradable anyarray usage
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Reorder ecpg_config.h.in alphabetically