Re: possible optimization: push down aggregates

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: possible optimization: push down aggregates
Дата
Msg-id 53FFE75F.9040809@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: possible optimization: push down aggregates  (Claudio Freire <klaussfreire@gmail.com>)
Список pgsql-hackers
On 08/28/2014 03:46 AM, Claudio Freire wrote:
> You can't with mean and stddev, only with associative aggregates.
> 
> That's min, max, sum, bit_and, bit_or, bool_and, bool_or, count.

You could with a new helper function to merge the temporary states for
each scan though.

In the case of mean, for example, it'd just mean adding the counts and sums.

However, I'm not sure how interesting that is without the ability to
execute the subplans in parallel.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Why data of timestamptz does not store value of timezone passed to it?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #9652: inet types don't support min/max