[COMMITTERS] pgsql: Fix AggGetAggref() so it won't lie to aggregate final functions.

2017-10-12 Thread Tom Lane
Fix AggGetAggref() so it won't lie to aggregate final functions. If we merge the transition calculations for two different aggregates, it's reasonable to assume that the transition function should not care which of those Aggref structs it gets from AggGetAggref(). It is not reasonable to make the

[COMMITTERS] pgsql: Fix AggGetAggref() so it won't lie to aggregate final functions.

2017-10-12 Thread Tom Lane
Fix AggGetAggref() so it won't lie to aggregate final functions. If we merge the transition calculations for two different aggregates, it's reasonable to assume that the transition function should not care which of those Aggref structs it gets from AggGetAggref(). It is not reasonable to make the

[COMMITTERS] pgsql: Fix AggGetAggref() so it won't lie to aggregate final functions.

2017-10-12 Thread Tom Lane
Fix AggGetAggref() so it won't lie to aggregate final functions. If we merge the transition calculations for two different aggregates, it's reasonable to assume that the transition function should not care which of those Aggref structs it gets from AggGetAggref(). It is not reasonable to make the