1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

Cause ExecCountSlots() accounting to bear some relationship to reality.

Rather surprising we hadn't seen bug reports about this ...
This commit is contained in:
Tom Lane
2001-05-27 20:42:20 +00:00
parent 2bc1c14ab0
commit a3855c5761
7 changed files with 15 additions and 15 deletions

View File

@ -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;