diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/utils/plancache.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/utils/plancache.h b/src/include/utils/plancache.h index ab20aa04b0a..5fc7903a068 100644 --- a/src/include/utils/plancache.h +++ b/src/include/utils/plancache.h @@ -182,4 +182,15 @@ extern CachedPlan *GetCachedPlan(CachedPlanSource *plansource, QueryEnvironment *queryEnv); extern void ReleaseCachedPlan(CachedPlan *plan, bool useResOwner); +/* possible values for plan_cache_mode */ +typedef enum +{ + PLAN_CACHE_MODE_AUTO, + PLAN_CACHE_MODE_FORCE_GENERIC_PLAN, + PLAN_CACHE_MODE_FORCE_CUSTOM_PLAN +} PlanCacheMode; + +/* GUC parameter */ +extern int plan_cache_mode; + #endif /* PLANCACHE_H */ |