PostgreSQL Source Code git master
|
#include "postgres.h"
#include <limits.h>
#include "access/parallel.h"
#include "commands/explain.h"
#include "common/pg_prng.h"
#include "executor/instrument.h"
#include "utils/guc.h"
Go to the source code of this file.
Macros | |
#define | auto_explain_enabled() |
Functions | |
static void | explain_ExecutorStart (QueryDesc *queryDesc, int eflags) |
static void | explain_ExecutorRun (QueryDesc *queryDesc, ScanDirection direction, uint64 count) |
static void | explain_ExecutorFinish (QueryDesc *queryDesc) |
static void | explain_ExecutorEnd (QueryDesc *queryDesc) |
void | _PG_init (void) |
#define auto_explain_enabled | ( | ) |
Definition at line 68 of file auto_explain.c.
void _PG_init | ( | void | ) |
Definition at line 91 of file auto_explain.c.
References auto_explain_log_analyze, auto_explain_log_buffers, auto_explain_log_format, auto_explain_log_level, auto_explain_log_min_duration, auto_explain_log_nested_statements, auto_explain_log_parameter_max_length, auto_explain_log_settings, auto_explain_log_timing, auto_explain_log_triggers, auto_explain_log_verbose, auto_explain_log_wal, auto_explain_sample_rate, DefineCustomBoolVariable(), DefineCustomEnumVariable(), DefineCustomIntVariable(), DefineCustomRealVariable(), ExecutorEnd_hook, ExecutorFinish_hook, ExecutorRun_hook, ExecutorStart_hook, explain_ExecutorEnd(), explain_ExecutorFinish(), explain_ExecutorRun(), explain_ExecutorStart(), EXPLAIN_FORMAT_TEXT, format_options, GUC_UNIT_BYTE, GUC_UNIT_MS, LOG, loglevel_options, MarkGUCPrefixReserved(), PGC_SUSET, prev_ExecutorEnd, prev_ExecutorFinish, prev_ExecutorRun, and prev_ExecutorStart.
|
static |
Definition at line 366 of file auto_explain.c.
References ExplainState::analyze, auto_explain_enabled, auto_explain_log_analyze, auto_explain_log_buffers, auto_explain_log_format, auto_explain_log_level, auto_explain_log_min_duration, auto_explain_log_parameter_max_length, auto_explain_log_settings, auto_explain_log_timing, auto_explain_log_triggers, auto_explain_log_verbose, auto_explain_log_wal, ExplainState::buffers, ExplainState::costs, StringInfoData::data, ereport, errhidestmt(), errmsg(), EState::es_query_cxt, QueryDesc::estate, EXPLAIN_FORMAT_JSON, ExplainBeginOutput(), ExplainEndOutput(), ExplainPrintJITSummary(), ExplainPrintPlan(), ExplainPrintTriggers(), ExplainQueryParameters(), ExplainQueryText(), ExplainState::format, InstrEndLoop(), QueryDesc::instrument_options, StringInfoData::len, MemoryContextSwitchTo(), NewExplainState(), QueryDesc::params, prev_ExecutorEnd, ExplainState::settings, standard_ExecutorEnd(), ExplainState::str, ExplainState::summary, ExplainState::timing, Instrumentation::total, QueryDesc::totaltime, ExplainState::verbose, and ExplainState::wal.
Referenced by _PG_init().
|
static |
Definition at line 345 of file auto_explain.c.
References nesting_level, PG_END_TRY, PG_FINALLY, PG_TRY, prev_ExecutorFinish, and standard_ExecutorFinish().
Referenced by _PG_init().
|
static |
Definition at line 323 of file auto_explain.c.
References nesting_level, PG_END_TRY, PG_FINALLY, PG_TRY, prev_ExecutorRun, and standard_ExecutorRun().
Referenced by _PG_init().
|
static |
Definition at line 260 of file auto_explain.c.
References auto_explain_enabled, auto_explain_log_analyze, auto_explain_log_buffers, auto_explain_log_min_duration, auto_explain_log_timing, auto_explain_log_wal, auto_explain_sample_rate, current_query_sampled, EState::es_query_cxt, QueryDesc::estate, EXEC_FLAG_EXPLAIN_ONLY, InstrAlloc(), INSTRUMENT_ALL, INSTRUMENT_BUFFERS, QueryDesc::instrument_options, INSTRUMENT_ROWS, INSTRUMENT_TIMER, INSTRUMENT_WAL, IsParallelWorker, MemoryContextSwitchTo(), nesting_level, pg_global_prng_state, pg_prng_double(), prev_ExecutorStart, standard_ExecutorStart(), and QueryDesc::totaltime.
Referenced by _PG_init().
|
static |
Definition at line 28 of file auto_explain.c.
Referenced by _PG_init(), explain_ExecutorEnd(), and explain_ExecutorStart().
|
static |
Definition at line 30 of file auto_explain.c.
Referenced by _PG_init(), explain_ExecutorEnd(), and explain_ExecutorStart().
|
static |
Definition at line 35 of file auto_explain.c.
Referenced by _PG_init(), and explain_ExecutorEnd().
|
static |
Definition at line 36 of file auto_explain.c.
Referenced by _PG_init(), and explain_ExecutorEnd().
|
static |
Definition at line 26 of file auto_explain.c.
Referenced by _PG_init(), explain_ExecutorEnd(), and explain_ExecutorStart().
|
static |
Definition at line 37 of file auto_explain.c.
Referenced by _PG_init().
|
static |
Definition at line 27 of file auto_explain.c.
Referenced by _PG_init(), and explain_ExecutorEnd().
|
static |
Definition at line 34 of file auto_explain.c.
Referenced by _PG_init(), and explain_ExecutorEnd().
|
static |
Definition at line 33 of file auto_explain.c.
Referenced by _PG_init(), explain_ExecutorEnd(), and explain_ExecutorStart().
|
static |
Definition at line 32 of file auto_explain.c.
Referenced by _PG_init(), and explain_ExecutorEnd().
|
static |
Definition at line 29 of file auto_explain.c.
Referenced by _PG_init(), and explain_ExecutorEnd().
|
static |
Definition at line 31 of file auto_explain.c.
Referenced by _PG_init(), explain_ExecutorEnd(), and explain_ExecutorStart().
|
static |
Definition at line 38 of file auto_explain.c.
Referenced by _PG_init(), and explain_ExecutorStart().
|
static |
Definition at line 66 of file auto_explain.c.
Referenced by explain_ExecutorStart().
|
static |
Definition at line 40 of file auto_explain.c.
Referenced by _PG_init().
|
static |
Definition at line 48 of file auto_explain.c.
Referenced by _PG_init().
|
static |
Definition at line 63 of file auto_explain.c.
Referenced by explain_ExecutorFinish(), explain_ExecutorRun(), and explain_ExecutorStart().
PG_MODULE_MAGIC |
Definition at line 23 of file auto_explain.c.
|
static |
Definition at line 77 of file auto_explain.c.
Referenced by _PG_init(), and explain_ExecutorEnd().
|
static |
Definition at line 76 of file auto_explain.c.
Referenced by _PG_init(), and explain_ExecutorFinish().
|
static |
Definition at line 75 of file auto_explain.c.
Referenced by _PG_init(), and explain_ExecutorRun().
|
static |
Definition at line 74 of file auto_explain.c.
Referenced by _PG_init(), and explain_ExecutorStart().