PostgreSQL Source Code: CachedPlanSource Struct Reference (original) (raw)

#include <[plancache.h](plancache%5F8h%5Fsource.html)>

Data Fields
int magic
struct RawStmt * raw_parse_tree
struct Query * analyzed_parse_tree
const char * query_string
CommandTag commandTag
Oid * param_types
int num_params
ParserSetupHook parserSetup
void * parserSetupArg
PostRewriteHook postRewrite
void * postRewriteArg
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 107 of file plancache.h.

analyzed_parse_tree

struct Query* CachedPlanSource::analyzed_parse_tree

commandTag

context

Definition at line 123 of file plancache.h.

Referenced by CachedPlanSetParentContext(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateCachedPlanForQuery(), CreateOneShotCachedPlan(), DropCachedPlan(), exec_parse_message(), GetCachedPlan(), RevalidateCachedQuery(), and SaveCachedPlan().

cursor_options

int CachedPlanSource::cursor_options

dependsOnRLS

bool CachedPlanSource::dependsOnRLS

fixed_result

bool CachedPlanSource::fixed_result

generation

int CachedPlanSource::generation

generic_cost

double CachedPlanSource::generic_cost

gplan

Definition at line 135 of file plancache.h.

Referenced by CachedPlanAllowsSimpleValidityCheck(), CachedPlanIsSimplyValid(), CachedPlanSetParentContext(), CheckCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), GetCachedPlan(), PlanCacheObjectCallback(), PlanCacheRelCallback(), ReleaseGenericPlan(), ResetPlanCache(), RevalidateCachedQuery(), SPI_plan_get_cached_plan(), and UpdateCachedPlan().

invalItems

List* CachedPlanSource::invalItems

is_complete

bool CachedPlanSource::is_complete

is_oneshot

bool CachedPlanSource::is_oneshot

Definition at line 137 of file plancache.h.

Referenced by BuildCachedPlan(), CachedPlanAllowsSimpleValidityCheck(), CachedPlanSetParentContext(), choose_custom_plan(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), DropCachedPlan(), RevalidateCachedQuery(), and SaveCachedPlan().

is_saved

bool CachedPlanSource::is_saved

is_valid

bool CachedPlanSource::is_valid

Definition at line 140 of file plancache.h.

Referenced by BuildCachedPlan(), CachedPlanIsSimplyValid(), CachedPlanIsValid(), CheckCachedPlan(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), PlanCacheObjectCallback(), PlanCacheRelCallback(), ResetPlanCache(), RevalidateCachedQuery(), and UpdateCachedPlan().

magic

int CachedPlanSource::magic

Definition at line 109 of file plancache.h.

Referenced by CachedPlanAllowsSimpleValidityCheck(), CachedPlanGetTargetList(), CachedPlanIsSimplyValid(), CachedPlanIsValid(), CachedPlanSetParentContext(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), DropCachedPlan(), GetCachedPlan(), PlanCacheObjectCallback(), PlanCacheRelCallback(), ResetPlanCache(), SaveCachedPlan(), and SetPostRewriteHook().

node

num_custom_plans

int64 CachedPlanSource::num_custom_plans

num_generic_plans

int64 CachedPlanSource::num_generic_plans

num_params

int CachedPlanSource::num_params

Definition at line 115 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().

param_types

Oid* CachedPlanSource::param_types

parserSetup

parserSetupArg

void* CachedPlanSource::parserSetupArg

postRewrite

postRewriteArg

void* CachedPlanSource::postRewriteArg

query_context

query_list

List* CachedPlanSource::query_list

Definition at line 125 of file plancache.h.

Referenced by BuildCachedPlan(), CachedPlanAllowsSimpleValidityCheck(), CachedPlanGetTargetList(), CompleteCachedPlan(), CopyCachedPlan(), CreateCachedPlan(), CreateOneShotCachedPlan(), exec_bind_message(), exec_is_simple_query(), init_execution_state(), RevalidateCachedQuery(), and UpdateCachedPlan().

query_string

const char* CachedPlanSource::query_string

Definition at line 112 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(), SPI_plan_get_cached_plan(), and UpdateCachedPlan().

raw_parse_tree

struct RawStmt* CachedPlanSource::raw_parse_tree

relationOids

List* CachedPlanSource::relationOids

resultDesc

Definition at line 122 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().

rewriteRoleId

Oid CachedPlanSource::rewriteRoleId

rewriteRowSecurity

bool CachedPlanSource::rewriteRowSecurity

search_path

total_custom_cost

double CachedPlanSource::total_custom_cost


The documentation for this struct was generated from the following file: