Re: more support for various frame types of window functions

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: more support for various frame types of window functions
Дата
Msg-id 4AF7EA45.309@enterprisedb.com
обсуждение исходный текст
Ответ на more support for various frame types of window functions  (Hitoshi Harada <umi.tanuki@gmail.com>)
Ответы Re: more support for various frame types of window functions
Re: more support for various frame types of window functions
Список pgsql-hackers
Hitoshi Harada wrote:
> That means moving average is initialized again on frame-off situation
> as the frame moves down. I know that may kill it's performance but
> reasons above result in my proposing design.

Yeah, we need the reinitialization support to handle the generic case.

One idea is to take a copy of the state datum after each row. Then,
instead of initializing the aggregate from scratch, you can "roll back"
to an earlier copied state. It doesn't always help, but might be a part
of the solution.

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Hitoshi Harada
Дата:
Сообщение: more support for various frame types of window functions
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Typed tables