Initialise a CachedPlan member correctly to avoid incorrect invalidation of a
authorPavan Deolasee <[email protected]>
Thu, 12 Jan 2017 07:25:24 +0000 (12:55 +0530)
committerPavan Deolasee <[email protected]>
Thu, 12 Jan 2017 07:25:24 +0000 (12:55 +0530)
RemoteSubplan

src/backend/utils/cache/plancache.c

index a7cc6b13a5172851c7f60038a61b09775a619b2a..652cdf188b0f36c6e36cd528be3cab50a11a8c30 100644 (file)
@@ -2065,6 +2065,7 @@ SetRemoteSubplan(CachedPlanSource *plansource, const char *plan_string)
        plan->saved_xmin = InvalidTransactionId;
        plan->refcount = 1; /* will be referenced by plansource */
        plan->context = plan_context;
+       plan->dependsOnRole = false;
        if (plansource->is_saved)
        {
                MemoryContextSetParent(plan_context, CacheMemoryContext);