|
PostgreSQL Source Code git master
|
#include "nodes/parsenodes.h"#include "nodes/plannodes.h"#include "parser/parse_node.h"#include "port/pg_bitutils.h"

Go to the source code of this file.
Data Structures | |
| struct | ExplainWorkersState |
| struct | ExplainState |
Typedefs | |
| typedef enum ExplainSerializeOption | ExplainSerializeOption |
| typedef enum ExplainFormat | ExplainFormat |
| typedef struct ExplainWorkersState | ExplainWorkersState |
| typedef struct ExplainState | ExplainState |
| typedef void(* | ExplainOptionHandler) (ExplainState *, DefElem *, ParseState *) |
| typedef bool(* | ExplainOptionGUCCheckHandler) (const char *option_name, const char *option_value, NodeTag option_type) |
| typedef void(* | explain_validate_options_hook_type) (ExplainState *es, List *options, ParseState *pstate) |
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, ExplainOptionGUCCheckHandler guc_check_handler) |
| bool | ApplyExtensionExplainOption (ExplainState *es, DefElem *opt, ParseState *pstate) |
| bool | GUCCheckExplainExtensionOption (const char *option_name, const char *option_value, NodeTag option_type) |
| bool | GUCCheckBooleanExplainOption (const char *option_name, const char *option_value, NodeTag option_type) |
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 87 of file explain_state.h.
| typedef bool(* ExplainOptionGUCCheckHandler) (const char *option_name, const char *option_value, NodeTag option_type) |
Definition at line 82 of file explain_state.h.
| typedef void(* ExplainOptionHandler) (ExplainState *, DefElem *, ParseState *) |
Definition at line 81 of file explain_state.h.
| typedef struct ExplainState ExplainState |
| Enumerator | |
|---|---|
| EXPLAIN_FORMAT_TEXT | |
| EXPLAIN_FORMAT_XML | |
| EXPLAIN_FORMAT_JSON | |
| EXPLAIN_FORMAT_YAML | |
Definition at line 28 of file explain_state.h.
| Enumerator | |
|---|---|
| EXPLAIN_SERIALIZE_NONE | |
| EXPLAIN_SERIALIZE_TEXT | |
| EXPLAIN_SERIALIZE_BINARY | |
Definition at line 21 of file explain_state.h.
|
extern |
Definition at line 389 of file explain_state.c.
References DefElem::defname, ExplainExtensionOptionArray, ExplainExtensionOptionsAssigned, fb(), i, and ExplainExtensionOption::option_handler.
Referenced by apply_extension_options(), and ParseExplainOptionList().
Definition at line 232 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 270 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(), overexplain_per_plan_hook(), pg_plan_advice_explain_option_handler(), and pg_plan_advice_should_explain().
|
extern |
Definition at line 454 of file explain_state.c.
References fb(), GUC_check_errmsg, option_type, pg_strcasecmp(), and value.
Referenced by _PG_init().
|
extern |
Definition at line 413 of file explain_state.c.
References ExplainExtensionOptionArray, ExplainExtensionOptionsAssigned, fb(), GUC_check_errmsg, ExplainExtensionOption::guc_check_handler, i, and option_type.
Referenced by check_log_extension_options().
|
extern |
Definition at line 64 of file explain_state.c.
References ExplainState::costs, makeStringInfo(), palloc0_object, and ExplainState::str.
Referenced by explain_ExecutorEnd(), and ExplainQuery().
|
extern |
Definition at line 80 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, ExplainState::io, 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 332 of file explain_state.c.
References Assert, 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 289 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(), and pg_plan_advice_explain_option_handler().
|
extern |
Definition at line 43 of file explain_state.c.
Referenced by ParseExplainOptionList().