From 072be4720273e02dcea71a8f805f377a35135108 Mon Sep 17 00:00:00 2001 From: "Vadim B. Mikheev" Date: Mon, 1 Feb 1999 13:33:27 +0000 Subject: [PATCH] Initialize es_snapshot. --- src/backend/executor/nodeSubplan.c | 1 + src/backend/executor/nodeTee.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/executor/nodeSubplan.c b/src/backend/executor/nodeSubplan.c index 94abb9aae6..2da904a925 100644 --- a/src/backend/executor/nodeSubplan.c +++ b/src/backend/executor/nodeSubplan.c @@ -121,6 +121,7 @@ ExecInitSubPlan(SubPlan *node, EState *estate, Plan *parent) ExecCreateTupleTable(ExecCountSlotsNode(node->plan) + 10); pfree(sp_estate->es_refcount); sp_estate->es_refcount = estate->es_refcount; + sp_estate->es_snapshot = estate->es_snapshot; if (!ExecInitNode(node->plan, sp_estate, NULL)) return false; diff --git a/src/backend/executor/nodeTee.c b/src/backend/executor/nodeTee.c index b565d2fd6e..5efa748e2c 100644 --- a/src/backend/executor/nodeTee.c +++ b/src/backend/executor/nodeTee.c @@ -14,7 +14,7 @@ * ExecInitTee * ExecEndTee * - * $Id: nodeTee.c,v 1.27 1998/12/14 06:50:22 scrappy Exp $ + * $Id: nodeTee.c,v 1.28 1999/02/01 13:33:27 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -80,6 +80,7 @@ ExecInitTee(Tee *node, EState *currentEstate, Plan *parent) estate->es_tupleTable = currentEstate->es_tupleTable; estate->es_refcount = currentEstate->es_refcount; estate->es_junkFilter = currentEstate->es_junkFilter; + estate->es_snapshot = currentEstate->es_snapshot; /* * use the range table for Tee subplan since the range tables for the