Re: avg(int2) and avg(int8) micro-opt

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: avg(int2) and avg(int8) micro-opt
Дата
Msg-id 26163.1112628110@sss.pgh.pa.us
обсуждение исходный текст
Ответ на avg(int2) and avg(int8) micro-opt  (Neil Conway <neilc@samurai.com>)
Ответы Re: avg(int2) and avg(int8) micro-opt  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> This patch changes int2_avg_accum() and int4_avg_accum() use the nodeAgg
> performance hack Tom introduced recently.

Why only those two?  Might as well make all the accum functions look alike.

> It is possible that the transition array might be TOAST'ed (not that I'd
> expect that to occur in practice, of course).

AFAICS that is impossible, since the transition value is never stored to
disk.  But your analysis is good anyway.

            regards, tom lane

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: avg(int2) and avg(int8) micro-opt
Следующее
От: Tom Lane
Дата:
Сообщение: Re: DELETE ... USING