mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Add plan_cache_mode setting
This allows overriding the choice of custom or generic plan. Author: Pavel Stehule <pavel.stehule@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CAFj8pRAGLaiEm8ur5DWEBo7qHRWTk9HxkuUAz00CZZtJj-LkCA%40mail.gmail.com
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user