postgresql/src/include/parser
David Rowley 63b1af9437 Cleanup some aggregate code in the executor
Here we alter the code that calls build_pertrans_for_aggref() so that the
function no longer needs to special-case whether it's dealing with an
aggtransfn or an aggcombinefn.  This allows us to reuse the
build_aggregate_transfn_expr() function and just get rid of the
build_aggregate_combinefn_expr() completely.

All of the special case code that was in build_pertrans_for_aggref() has
been moved up to the calling functions.

This saves about a dozen lines of code in nodeAgg.c and a few dozen more
in parse_agg.c

Also, rename a few variables in nodeAgg.c to try to make it more clear
that we're working with either a aggtransfn or an aggcombinefn.  Some of
the old names would have you believe that we were always working with an
aggtransfn.

Discussion: https://postgr.es/m/CAApHDvptMQ9FmF0D67zC_w88yVnoNVR2+kkOQGUrCmdxWxLULQ@mail.gmail.com
2021-07-04 18:47:31 +12:00
..
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
analyze.h Move pg_stat_statements query jumbling to core. 2021-04-07 13:06:56 -04:00
gramparse.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
kwlist.h SQL-standard function body 2021-04-07 21:47:55 +02:00
parse_agg.h Cleanup some aggregate code in the executor 2021-07-04 18:47:31 +12:00
parse_clause.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
parse_coerce.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
parse_collate.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
parse_cte.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
parse_enr.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
parse_expr.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
parse_func.h Reconsider the handling of procedure OUT parameters. 2021-06-10 17:11:36 -04:00
parse_node.h Allow an alias to be attached to a JOIN ... USING 2021-03-31 17:10:50 +02:00
parse_oper.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
parse_param.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
parse_relation.h Allow an alias to be attached to a JOIN ... USING 2021-03-31 17:10:50 +02:00
parse_target.h Re-implement pl/pgsql's expression and assignment parsing. 2021-01-04 11:52:00 -05:00
parse_type.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
parse_utilcmd.h Extended statistics on expressions 2021-03-27 00:01:11 +01:00
parser.h Re-implement pl/pgsql's expression and assignment parsing. 2021-01-04 11:52:00 -05:00
parsetree.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
scanner.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
scansup.h Update copyright for 2021 2021-01-02 13:06:25 -05:00