auto_explain: Add new GUC, auto_explain.log_extension_options.
Robert Haas <rhaas@postgresql.org>
auto_explain: Add new GUC, auto_explain.log_extension_options. The associated value should look like something that could be part of an EXPLAIN options list, but restricted to EXPLAIN options added by extensions. For example, if pg_overexplain is loaded, you could set auto_explain.log_extension_options = 'DEBUG, RANGE_TABLE'. You can also specify arguments to these options in the same manner as normal e.g. 'DEBUG 1, RANGE_TABLE false'. Reviewed-by: Matheus Alcantara <matheusssilv97@gmail.com> Reviewed-by: Lukas Fittl <lukas@fittl.com> Discussion: http://postgr.es/m/CA+Tgmob-0W8306mvrJX5Urtqt1AAasu8pi4yLrZ1XfwZU-Uj1w@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/auto_explain/auto_explain.c | modified | +387 −0 |
| contrib/auto_explain/expected/extension_options.out | added | +49 −0 |
| contrib/auto_explain/Makefile | modified | +2 −1 |
| contrib/auto_explain/meson.build | modified | +1 −0 |
| contrib/auto_explain/sql/extension_options.sql | added | +33 −0 |
| contrib/auto_explain/t/001_auto_explain.pl | modified | +17 −1 |
| doc/src/sgml/auto-explain.sgml | modified | +23 −0 |
| src/tools/pgindent/typedefs.list | modified | +2 −0 |
Discussion
- Add custom EXPLAIN options support to auto_explain 16 messages · 2026-03-26 → 2026-04-06