|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Data Structures | |
| struct | ExplainWorkersState |
| struct | ExplainState |
Enumerations | |
| enum | ExplainSerializeOption { EXPLAIN_SERIALIZE_NONE , EXPLAIN_SERIALIZE_TEXT , EXPLAIN_SERIALIZE_BINARY } |
| enum | ExplainFormat { EXPLAIN_FORMAT_TEXT , EXPLAIN_FORMAT_XML , EXPLAIN_FORMAT_JSON , EXPLAIN_FORMAT_YAML } |
Functions | |
| ExplainState * | NewExplainState (void) |
| void | ParseExplainOptionList (ExplainState *es, List *options, ParseState *pstate) |
| int | GetExplainExtensionId (const char *extension_name) |
| void * | GetExplainExtensionState (ExplainState *es, int extension_id) |
| void | SetExplainExtensionState (ExplainState *es, int extension_id, void *opaque) |
| void | RegisterExtensionExplainOption (const char *option_name, ExplainOptionHandler handler) |
| bool | ApplyExtensionExplainOption (ExplainState *es, DefElem *opt, ParseState *pstate) |
Variables | |
| PGDLLIMPORT explain_validate_options_hook_type | explain_validate_options_hook |
| typedef void(* explain_validate_options_hook_type) (ExplainState *es, List *options, ParseState *pstate) |
Definition at line 82 of file explain_state.h.
| typedef void(* ExplainOptionHandler) (ExplainState *, DefElem *, ParseState *) |
Definition at line 79 of file explain_state.h.
| Enumerator | |
|---|---|
| EXPLAIN_FORMAT_TEXT | |
| EXPLAIN_FORMAT_XML | |
| EXPLAIN_FORMAT_JSON | |
| EXPLAIN_FORMAT_YAML | |
Definition at line 27 of file explain_state.h.
| Enumerator | |
|---|---|
| EXPLAIN_SERIALIZE_NONE | |
| EXPLAIN_SERIALIZE_TEXT | |
| EXPLAIN_SERIALIZE_BINARY | |
Definition at line 20 of file explain_state.h.
|
extern |
Definition at line 364 of file explain_state.c.
References DefElem::defname, ExplainExtensionOptionArray, ExplainExtensionOptionsAssigned, fb(), i, and ExplainExtensionOption::option_handler.
Referenced by ParseExplainOptionList().
Definition at line 221 of file explain_state.c.
References ExplainExtensionNameArray, ExplainExtensionNamesAllocated, ExplainExtensionNamesAssigned, fb(), i, MemoryContextAlloc(), pg_nextpower2_32(), repalloc(), and TopMemoryContext.
Referenced by _PG_init().
|
extern |
Definition at line 259 of file explain_state.c.
References Assert, ExplainState::extension_state, ExplainState::extension_state_allocated, and fb().
Referenced by overexplain_ensure_options(), overexplain_per_node_hook(), and overexplain_per_plan_hook().
|
extern |
Definition at line 61 of file explain_state.c.
References ExplainState::costs, makeStringInfo(), palloc0_object, and ExplainState::str.
Referenced by explain_ExecutorEnd(), and ExplainQuery().
|
extern |
Definition at line 77 of file explain_state.c.
References ExplainState::analyze, ApplyExtensionExplainOption(), DefElem::arg, ExplainState::buffers, ExplainState::costs, defGetBoolean(), defGetString(), DefElem::defname, ereport, errcode(), errmsg(), ERROR, EXPLAIN_FORMAT_JSON, EXPLAIN_FORMAT_TEXT, EXPLAIN_FORMAT_XML, EXPLAIN_FORMAT_YAML, EXPLAIN_SERIALIZE_BINARY, EXPLAIN_SERIALIZE_NONE, EXPLAIN_SERIALIZE_TEXT, explain_validate_options_hook, fb(), ExplainState::format, ExplainState::generic, lfirst, DefElem::location, ExplainState::memory, parser_errposition(), ExplainState::serialize, ExplainState::settings, ExplainState::summary, ExplainState::timing, ExplainState::verbose, and ExplainState::wal.
Referenced by ExplainQuery().
|
extern |
Definition at line 315 of file explain_state.c.
References ExplainExtensionOptionArray, ExplainExtensionOptionsAllocated, ExplainExtensionOptionsAssigned, fb(), i, MemoryContextAlloc(), ExplainExtensionOption::option_handler, ExplainExtensionOption::option_name, pg_nextpower2_32(), repalloc(), and TopMemoryContext.
Referenced by _PG_init().
|
extern |
Definition at line 278 of file explain_state.c.
References Assert, ExplainState::extension_state, ExplainState::extension_state_allocated, fb(), i, Max, palloc0(), pg_nextpower2_32(), and repalloc0_array.
Referenced by overexplain_ensure_options().
|
extern |
Definition at line 41 of file explain_state.c.
Referenced by ParseExplainOptionList().