Re: [HACKERS] Passing "direct" args of ordered-set aggs to the transition function

2014-01-23 Thread Florian Pflug
On Jan23, 2014, at 17:20 , Tom Lane wrote: > Florian Pflug writes: >> Is there a particular reason why the "direct" arguments of ordered-set >> aggregates are not passed to the transition function too? > > Because they have to be evaluated only once. > > I did consider evaluating them once at t

Re: [HACKERS] Passing "direct" args of ordered-set aggs to the transition function

2014-01-23 Thread Tom Lane
Florian Pflug writes: > Is there a particular reason why the "direct" arguments of ordered-set > aggregates are not passed to the transition function too? Because they have to be evaluated only once. I did consider evaluating them once at the start and saving the values, but that's a bit problem