Re: O(n^2) aggregates

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: O(n^2) aggregates
Дата
Msg-id 13752.1197300279@sss.pgh.pa.us
обсуждение исходный текст
Ответ на O(n^2) aggregates  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> The solution to this would analogous to what we did to count(). We would need
> to add a field to ArrayMetaState which is stored in fn_extra to remember the
> last array returned. Then if array_push notices it has been called from an
> aggregate context it can store its result in there. The next time it would
> extend that array in place (which is code which doesn't currently exist),

contrib/intagg
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #3799: csvlog skips some logs
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [BUGS] BUG #3799: csvlog skips some logs