Re: sum(int4)/sum(int2) improvement

Поиск
Список
Период
Сортировка
От Atsushi Ogawa
Тема Re: sum(int4)/sum(int2) improvement
Дата
Msg-id PIEMIKOOMKNIJLLLBCBBOEPDCKAA.a_ogawa@hi-ho.ne.jp
обсуждение исходный текст
Ответ на Re: sum(int4)/sum(int2) improvement  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: sum(int4)/sum(int2) improvement  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane wrote:
> Atsushi Ogawa <a_ogawa@hi-ho.ne.jp> writes:
> > An attached patch uses AggState->aggcontext instead of per-tuple
> > context to allocate the data. As a result, per-tuple context is not
> > used, and the cycles of AllocSetReset is reduced.
>
> Why is this better than the fix already in place?

Because per-tuple context is reset many times. If per-tuple context is
never used, the following codes of AllocSetReset become effective.

    /* Nothing to do if context has never contained any data */
    if (block == NULL)
        return;

--- Atsushi Ogawa


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: sum(int4)/sum(int2) improvement
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: prevent encoding conversion recursive error