aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeHash.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-05-27 20:42:20 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-05-27 20:42:20 +0000
commita3855c57618b21589b164ea0f15821b4bb644aaa (patch)
treea4a8a723ed617f5300abf0ad5343c02f794285d5 /src/backend/executor/nodeHash.c
parent2bc1c14ab0d68dc7dc2c8f426e10540836e4f41e (diff)
downloadpostgresql-a3855c57618b21589b164ea0f15821b4bb644aaa.tar.gz
postgresql-a3855c57618b21589b164ea0f15821b4bb644aaa.zip
Cause ExecCountSlots() accounting to bear some relationship to reality.
Rather surprising we hadn't seen bug reports about this ...
Diffstat (limited to 'src/backend/executor/nodeHash.c')
-rw-r--r--src/backend/executor/nodeHash.c5
1 files changed, 3 insertions, 2 deletions
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;