Add SETTINGS option to EXPLAIN, to print modified settings.
Tomas Vondra <tomas.vondra@postgresql.org>
Add SETTINGS option to EXPLAIN, to print modified settings. Query planning is affected by a number of configuration options, and it may be crucial to know which of those options were set to non-default values. With this patch you can say EXPLAIN (SETTINGS ON) to include that information in the query plan. Only options affecting planning, with values different from the built-in default are printed. This patch also adds auto_explain.log_settings option, providing the same capability in auto_explain module. Author: Tomas Vondra Reviewed-by: Rafia Sabih, John Naylor Discussion: https://postgr.es/m/e1791b4c-df9c-be02-edc5-7c8874944be0@2ndquadrant.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/auto_explain/auto_explain.c | modified | +13 −0 |
| doc/src/sgml/auto-explain.sgml | modified | +18 −0 |
| doc/src/sgml/ref/explain.sgml | modified | +12 −0 |
| src/backend/commands/explain.c | modified | +76 −0 |
| src/backend/utils/misc/guc.c | modified | +210 −52 |
| src/include/commands/explain.h | modified | +1 −0 |
| src/include/utils/guc.h | modified | +2 −0 |
| src/include/utils/guc_tables.h | modified | +1 −0 |
Documentation touched
Discussion
- explain plans with information about (modified) gucs 40 messages · 2018-12-14 → 2019-04-03