pgsql: autho_explain: Add GUC to log query parameters

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: autho_explain: Add GUC to log query parameters
Дата
Msg-id E1o8tLT-001OxX-Dy@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Tighten pg_upgrade's new check for non-upgradable anyarray usage
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Reorder ecpg_config.h.in alphabetically