PostgreSQL Source Code
git master
|
#include <plancache.h>
Data Fields | |
int | magic |
struct RawStmt * | raw_parse_tree |
const char * | query_string |
CommandTag | commandTag |
Oid * | param_types |
int | num_params |
ParserSetupHook | parserSetup |
void * | parserSetupArg |
int | cursor_options |
bool | fixed_result |
TupleDesc | resultDesc |
MemoryContext | context |
List * | query_list |
List * | relationOids |
List * | invalItems |
struct SearchPathMatcher * | search_path |
MemoryContext | query_context |
Oid | rewriteRoleId |
bool | rewriteRowSecurity |
bool | dependsOnRLS |
struct CachedPlan * | gplan |
bool | is_oneshot |
bool | is_complete |
bool | is_saved |
bool | is_valid |
int | generation |
dlist_node | node |
double | generic_cost |
double | total_custom_cost |
int64 | num_custom_plans |
int64 | num_generic_plans |
Definition at line 96 of file plancache.h.
CommandTag CachedPlanSource::commandTag |
Definition at line 101 of file plancache.h.
Referenced by _SPI_execute_plan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), exec_bind_message(), exec_stmt_execsql(), ExecuteQuery(), and SPI_cursor_open_internal().
MemoryContext CachedPlanSource::context |
Definition at line 109 of file plancache.h.
Referenced by CachedPlanSetParentContext(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), DropCachedPlan(), exec_parse_message(), GetCachedPlan(), RevalidateCachedQuery(), and SaveCachedPlan().
int CachedPlanSource::cursor_options |
Definition at line 106 of file plancache.h.
Referenced by BuildCachedPlan(), choose_custom_plan(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), and CreateOneShotCachedPlan().
bool CachedPlanSource::dependsOnRLS |
Definition at line 119 of file plancache.h.
Referenced by BuildCachedPlan(), CachedPlanAllowsSimpleValidityCheck(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), and RevalidateCachedQuery().
bool CachedPlanSource::fixed_result |
Definition at line 107 of file plancache.h.
Referenced by CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), exec_describe_statement_message(), ExecuteQuery(), ExplainExecuteQuery(), and RevalidateCachedQuery().
int CachedPlanSource::generation |
Definition at line 127 of file plancache.h.
Referenced by BuildCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), and CreateOneShotCachedPlan().
double CachedPlanSource::generic_cost |
Definition at line 131 of file plancache.h.
Referenced by choose_custom_plan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), and GetCachedPlan().
struct CachedPlan* CachedPlanSource::gplan |
Definition at line 121 of file plancache.h.
Referenced by CachedPlanAllowsSimpleValidityCheck(), CachedPlanIsSimplyValid(), CachedPlanSetParentContext(), CheckCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), GetCachedPlan(), PlanCacheObjectCallback(), PlanCacheRelCallback(), ReleaseGenericPlan(), ResetPlanCache(), RevalidateCachedQuery(), and SPI_plan_get_cached_plan().
List* CachedPlanSource::invalItems |
Definition at line 113 of file plancache.h.
Referenced by CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), PlanCacheObjectCallback(), and RevalidateCachedQuery().
bool CachedPlanSource::is_complete |
Definition at line 124 of file plancache.h.
Referenced by CachedPlanGetTargetList(), CachedPlanSetParentContext(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), GetCachedPlan(), RevalidateCachedQuery(), and SaveCachedPlan().
bool CachedPlanSource::is_oneshot |
Definition at line 123 of file plancache.h.
Referenced by BuildCachedPlan(), CachedPlanAllowsSimpleValidityCheck(), CachedPlanSetParentContext(), choose_custom_plan(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), DropCachedPlan(), RevalidateCachedQuery(), and SaveCachedPlan().
bool CachedPlanSource::is_saved |
Definition at line 125 of file plancache.h.
Referenced by CachedPlanSetParentContext(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), DropCachedPlan(), GetCachedPlan(), and SaveCachedPlan().
bool CachedPlanSource::is_valid |
Definition at line 126 of file plancache.h.
Referenced by BuildCachedPlan(), CachedPlanIsSimplyValid(), CachedPlanIsValid(), CheckCachedPlan(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), PlanCacheObjectCallback(), PlanCacheRelCallback(), ResetPlanCache(), and RevalidateCachedQuery().
int CachedPlanSource::magic |
Definition at line 98 of file plancache.h.
Referenced by CachedPlanAllowsSimpleValidityCheck(), CachedPlanGetTargetList(), CachedPlanIsSimplyValid(), CachedPlanIsValid(), CachedPlanSetParentContext(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), DropCachedPlan(), GetCachedPlan(), PlanCacheObjectCallback(), PlanCacheRelCallback(), ResetPlanCache(), and SaveCachedPlan().
dlist_node CachedPlanSource::node |
Definition at line 129 of file plancache.h.
Referenced by DropCachedPlan(), and SaveCachedPlan().
int64 CachedPlanSource::num_custom_plans |
Definition at line 133 of file plancache.h.
Referenced by choose_custom_plan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), GetCachedPlan(), and pg_prepared_statement().
int64 CachedPlanSource::num_generic_plans |
Definition at line 134 of file plancache.h.
Referenced by CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), GetCachedPlan(), and pg_prepared_statement().
int CachedPlanSource::num_params |
Definition at line 103 of file plancache.h.
Referenced by CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), EvaluateParams(), exec_bind_message(), exec_describe_statement_message(), ExecuteQuery(), ExplainExecuteQuery(), pg_prepared_statement(), and RevalidateCachedQuery().
Oid* CachedPlanSource::param_types |
Definition at line 102 of file plancache.h.
Referenced by CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), EvaluateParams(), exec_bind_message(), exec_describe_statement_message(), pg_prepared_statement(), and RevalidateCachedQuery().
ParserSetupHook CachedPlanSource::parserSetup |
Definition at line 104 of file plancache.h.
Referenced by CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), and RevalidateCachedQuery().
void* CachedPlanSource::parserSetupArg |
Definition at line 105 of file plancache.h.
Referenced by CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), and RevalidateCachedQuery().
MemoryContext CachedPlanSource::query_context |
Definition at line 116 of file plancache.h.
Referenced by CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), and RevalidateCachedQuery().
List* CachedPlanSource::query_list |
Definition at line 111 of file plancache.h.
Referenced by BuildCachedPlan(), CachedPlanAllowsSimpleValidityCheck(), CachedPlanGetTargetList(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), exec_bind_message(), exec_is_simple_query(), and RevalidateCachedQuery().
const char* CachedPlanSource::query_string |
Definition at line 100 of file plancache.h.
Referenced by _SPI_execute_plan(), BuildCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), exec_bind_message(), ExecuteQuery(), ExplainExecuteQuery(), pg_prepared_statement(), RevalidateCachedQuery(), SPI_cursor_open_internal(), and SPI_plan_get_cached_plan().
struct RawStmt* CachedPlanSource::raw_parse_tree |
Definition at line 99 of file plancache.h.
Referenced by _SPI_execute_plan(), BuildCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), exec_bind_message(), and RevalidateCachedQuery().
List* CachedPlanSource::relationOids |
Definition at line 112 of file plancache.h.
Referenced by CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), PlanCacheRelCallback(), and RevalidateCachedQuery().
TupleDesc CachedPlanSource::resultDesc |
Definition at line 108 of file plancache.h.
Referenced by _SPI_execute_plan(), CachedPlanGetTargetList(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), exec_describe_statement_message(), pg_prepared_statement(), RevalidateCachedQuery(), SPI_is_cursor_plan(), and UtilityReturnsTuples().
Oid CachedPlanSource::rewriteRoleId |
Definition at line 117 of file plancache.h.
Referenced by CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), and RevalidateCachedQuery().
bool CachedPlanSource::rewriteRowSecurity |
Definition at line 118 of file plancache.h.
Referenced by CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), and RevalidateCachedQuery().
struct SearchPathMatcher* CachedPlanSource::search_path |
Definition at line 114 of file plancache.h.
Referenced by CachedPlanAllowsSimpleValidityCheck(), CachedPlanIsSimplyValid(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), and RevalidateCachedQuery().
double CachedPlanSource::total_custom_cost |
Definition at line 132 of file plancache.h.
Referenced by choose_custom_plan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), and GetCachedPlan().