projects
/
postgres-xl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d1e699
)
Initialise a CachedPlan member correctly to avoid incorrect invalidation of a
author
Pavan Deolasee
<
[email protected]
>
Thu, 12 Jan 2017 07:25:24 +0000
(12:55 +0530)
committer
Pavan Deolasee
<
[email protected]
>
Thu, 12 Jan 2017 07:25:24 +0000
(12:55 +0530)
RemoteSubplan
src/backend/utils/cache/plancache.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/cache/plancache.c
b/src/backend/utils/cache/plancache.c
index a7cc6b13a5172851c7f60038a61b09775a619b2a..652cdf188b0f36c6e36cd528be3cab50a11a8c30 100644
(file)
--- a/
src/backend/utils/cache/plancache.c
+++ b/
src/backend/utils/cache/plancache.c
@@
-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);