Passing "direct" args of ordered-set aggs to the transition function

Поиск
Список
Период
Сортировка
От Florian Pflug
Тема Passing "direct" args of ordered-set aggs to the transition function
Дата
Msg-id 41FAFDF8-39B2-4AEF-9FAC-5A317771912F@phlo.org
обсуждение исходный текст
Ответы Re: Passing "direct" args of ordered-set aggs to the transition function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

Is there a particular reason why the "direct" arguments of ordered-set
aggregates are not passed to the transition function too? It seems that
evaluating of some ordered-set aggregates would be much cheaper if we did
that.

For example, dense_rank() would then just need to count the number of rows
smaller than the hypothetical row, AFAICS.

Another example (that we don't currently provide, but still) would be a
histogram aggregate which receives an array of buckets as direct args and
returns a similarly shaped array of counters.

best regards,
Florian Pflug




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: dynamic shared memory and locks
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Add %z support to elog/ereport?