diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-06-26 12:08:12 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-06-26 12:08:12 -0400 |
commit | 59a3795c2589a0e6dfe4d9a886de9423b3f8b057 (patch) | |
tree | c8481f4c3fbf105d69c6d5ecf647644238b0247a /src/backend/access/gist/gistvalidate.c | |
parent | e3ad3ffa68193dd889a9cea9d840bf4613bd680b (diff) | |
download | postgresql-59a3795c2589a0e6dfe4d9a886de9423b3f8b057.tar.gz postgresql-59a3795c2589a0e6dfe4d9a886de9423b3f8b057.zip |
Simplify planner's final setup of Aggrefs for partial aggregation.
Commit e06a38965's original coding for constructing the execution-time
expression tree for a combining aggregate was rather messy, involving
duplicating quite a lot of code in setrefs.c so that it could inject
a nonstandard matching rule for Aggrefs. Get rid of that in favor of
explicitly constructing a combining Aggref with a partial Aggref as input,
then allowing setref's normal matching logic to match the partial Aggref
to the output of the lower plan node and hence replace it with a Var.
In passing, rename and redocument make_partialgroup_input_target to have
some connection to what it actually does.
Diffstat (limited to 'src/backend/access/gist/gistvalidate.c')
0 files changed, 0 insertions, 0 deletions