From a3855c57618b21589b164ea0f15821b4bb644aaa Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 27 May 2001 20:42:20 +0000 Subject: Cause ExecCountSlots() accounting to bear some relationship to reality. Rather surprising we hadn't seen bug reports about this ... --- src/backend/executor/nodeHash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/backend/executor/nodeHash.c') diff --git a/src/backend/executor/nodeHash.c b/src/backend/executor/nodeHash.c index 45b3f8bc105..b8fed0304f5 100644 --- a/src/backend/executor/nodeHash.c +++ b/src/backend/executor/nodeHash.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * - * $Id: nodeHash.c,v 1.56 2001/03/22 06:16:12 momjian Exp $ + * $Id: nodeHash.c,v 1.57 2001/05/27 20:42:18 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -140,6 +140,8 @@ ExecInitHash(Hash *node, EState *estate, Plan *parent) */ ExecAssignExprContext(estate, &hashstate->cstate); +#define HASH_NSLOTS 1 + /* * initialize our result slot */ @@ -164,7 +166,6 @@ ExecInitHash(Hash *node, EState *estate, Plan *parent) int ExecCountSlotsHash(Hash *node) { -#define HASH_NSLOTS 1 return ExecCountSlotsNode(outerPlan(node)) + ExecCountSlotsNode(innerPlan(node)) + HASH_NSLOTS; -- cgit v1.2.3