diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-01-28 19:36:33 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-01-28 19:36:33 +0000 |
commit | a098f533d15efe5552c0b6cd661cc123231c8c54 (patch) | |
tree | ebe55a8f91b584c66805ad50600647a1a756d2c4 /src/include/executor/nodeAgg.h | |
parent | af5cd5ba92036f07f8414b15ec96da096ded8d7e (diff) |
Improve planner's estimation of the space needed for HashAgg plans:
look at the actual aggregate transition datatypes and the actual overhead
needed by nodeAgg.c, instead of using pessimistic round numbers.
Per a discussion with Michael Tiemann.
Diffstat (limited to 'src/include/executor/nodeAgg.h')
-rw-r--r-- | src/include/executor/nodeAgg.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/executor/nodeAgg.h b/src/include/executor/nodeAgg.h index 32449c22aab..cb9631ea268 100644 --- a/src/include/executor/nodeAgg.h +++ b/src/include/executor/nodeAgg.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/executor/nodeAgg.h,v 1.23 2004/12/31 22:03:29 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/executor/nodeAgg.h,v 1.23.4.1 2005/01/28 19:36:17 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -23,6 +23,8 @@ extern TupleTableSlot *ExecAgg(AggState *node); extern void ExecEndAgg(AggState *node); extern void ExecReScanAgg(AggState *node, ExprContext *exprCtxt); +extern Size hash_agg_entry_size(int numAggs); + extern Datum aggregate_dummy(PG_FUNCTION_ARGS); #endif /* NODEAGG_H */ |