From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: autho_explain: Add GUC to log query parameters
Date: Wed, 06 Jul 2022 00:56:48 +0000
Message-ID: <E1o8tLT-001OxX-Dy@gemulon.postgresql.org> (raw)
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(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: autho_explain: Add GUC to log query parameters
In-Reply-To: <E1o8tLT-001OxX-Dy@gemulon.postgresql.org>
References: <E1o8tLT-001OxX-Dy@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox