aboutsummaryrefslogtreecommitdiff
path: root/src/include/executor
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-01-28 19:34:28 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-01-28 19:34:28 +0000
commit0bf2587df46f3b554d62f7628d1d474bda7ddfc5 (patch)
tree92f670d4d386d72eab646685648d6cf3f4a546eb /src/include/executor
parentc3a4e22e826ca2cd2f1e1b6d6dd4ae953b6755f1 (diff)
downloadpostgresql-0bf2587df46f3b554d62f7628d1d474bda7ddfc5.tar.gz
postgresql-0bf2587df46f3b554d62f7628d1d474bda7ddfc5.zip
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')
-rw-r--r--src/include/executor/nodeAgg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/executor/nodeAgg.h b/src/include/executor/nodeAgg.h
index 32449c22aab..41dd57a8acb 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.24 2005/01/28 19:34:18 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 */