diff options
Diffstat (limited to 'src/include/utils/plancache.h')
-rw-r--r-- | src/include/utils/plancache.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/include/utils/plancache.h b/src/include/utils/plancache.h index 5fc925a667..bb5e515288 100644 --- a/src/include/utils/plancache.h +++ b/src/include/utils/plancache.h @@ -40,18 +40,18 @@ * losing any flexibility if a replan turns out to be necessary. * * Note: the string referenced by commandTag is not subsidiary storage; - * it is assumed to be a compile-time-constant string. As with portals, + * it is assumed to be a compile-time-constant string. As with portals, * commandTag shall be NULL if and only if the original query string (before * rewriting) was an empty string. */ typedef struct CachedPlanSource { - Node *raw_parse_tree; /* output of raw_parser() */ + Node *raw_parse_tree; /* output of raw_parser() */ char *query_string; /* text of query, or NULL */ const char *commandTag; /* command tag (a constant!), or NULL */ Oid *param_types; /* array of parameter type OIDs, or NULL */ int num_params; /* length of param_types array */ - int cursor_options; /* cursor options used for planning */ + int cursor_options; /* cursor options used for planning */ bool fully_planned; /* do we cache planner or rewriter output? */ bool fixed_result; /* disallow change in result tupdesc? */ struct OverrideSearchPath *search_path; /* saved search_path */ @@ -59,8 +59,8 @@ typedef struct CachedPlanSource TupleDesc resultDesc; /* result type; NULL = doesn't return tuples */ struct CachedPlan *plan; /* link to plan, or NULL if not valid */ MemoryContext context; /* context containing this CachedPlanSource */ - struct CachedPlan *orig_plan; /* link to plan owning my context */ -} CachedPlanSource; + struct CachedPlan *orig_plan; /* link to plan owning my context */ +} CachedPlanSource; /* * CachedPlan represents the portion of a cached plan that is discarded when @@ -80,33 +80,33 @@ typedef struct CachedPlan int refcount; /* count of live references to this struct */ int generation; /* counter, starting at 1, for replans */ MemoryContext context; /* context containing this CachedPlan */ -} CachedPlan; +} CachedPlan; extern void InitPlanCache(void); extern CachedPlanSource *CreateCachedPlan(Node *raw_parse_tree, - const char *query_string, - const char *commandTag, - Oid *param_types, - int num_params, - int cursor_options, - List *stmt_list, - bool fully_planned, - bool fixed_result); + const char *query_string, + const char *commandTag, + Oid *param_types, + int num_params, + int cursor_options, + List *stmt_list, + bool fully_planned, + bool fixed_result); extern CachedPlanSource *FastCreateCachedPlan(Node *raw_parse_tree, - char *query_string, - const char *commandTag, - Oid *param_types, - int num_params, - int cursor_options, - List *stmt_list, - bool fully_planned, - bool fixed_result, - MemoryContext context); -extern void DropCachedPlan(CachedPlanSource *plansource); -extern CachedPlan *RevalidateCachedPlan(CachedPlanSource *plansource, - bool useResOwner); -extern void ReleaseCachedPlan(CachedPlan *plan, bool useResOwner); + char *query_string, + const char *commandTag, + Oid *param_types, + int num_params, + int cursor_options, + List *stmt_list, + bool fully_planned, + bool fixed_result, + MemoryContext context); +extern void DropCachedPlan(CachedPlanSource * plansource); +extern CachedPlan *RevalidateCachedPlan(CachedPlanSource * plansource, + bool useResOwner); +extern void ReleaseCachedPlan(CachedPlan * plan, bool useResOwner); extern TupleDesc PlanCacheComputeResultDesc(List *stmt_list); extern void ResetPlanCache(void); |