Thread: pgsql: ExecInitAgg: update aggstate->numaggs and ->numtrans earlier.

ExecInitAgg: update aggstate->numaggs and ->numtrans earlier.

Functions hash_agg_entry_size() and build_hash_tables() make use of
those values for memory size estimates.

Because this change only affects memory estimates, don't backpatch.

Discussion: https://postgr.es/m/7530bd8783b1a78d53a3c70383e38d8da0a5ffe5.camel%40j-davis.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3f482940dbcbd15834a67894f4d9efdf5ceb7e16

Modified Files
--------------
src/backend/executor/nodeAgg.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)