diff options
| author | Bruce Momjian <bruce@momjian.us> | 2007-11-15 21:14:46 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2007-11-15 21:14:46 +0000 |
| commit | fdf5a5efb7b28c13085fe7313658de8d7b9914f6 (patch) | |
| tree | a75cf1422fa1eef4e801cf502b148d8ce1b5dfe7 /src/include/utils/plancache.h | |
| parent | 3adc760fb92eab1a8720337a8bf9b66486609eb3 (diff) | |
| download | postgresql-fdf5a5efb7b28c13085fe7313658de8d7b9914f6.tar.gz | |
pgindent run for 8.3.
Diffstat (limited to 'src/include/utils/plancache.h')
| -rw-r--r-- | src/include/utils/plancache.h | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/include/utils/plancache.h b/src/include/utils/plancache.h index 0a91e886e2..2f8c423352 100644 --- a/src/include/utils/plancache.h +++ b/src/include/utils/plancache.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/plancache.h,v 1.8 2007/09/20 17:56:32 tgl Exp $ + * $PostgreSQL: pgsql/src/include/utils/plancache.h,v 1.9 2007/11/15 21:14:45 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -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); |
