| От | Tom Lane |
|---|---|
| Тема | Re: avg(int2) and avg(int8) micro-opt |
| Дата | |
| Msg-id | 4992.1112666646@sss.pgh.pa.us обсуждение |
| Ответ на | Re: avg(int2) and avg(int8) micro-opt (Neil Conway <neilc@samurai.com>) |
| Список | pgsql-patches |
Neil Conway <neilc@samurai.com> writes:
> Tom Lane wrote:
>> Why only those two? Might as well make all the accum functions look alike.
> Yeah, there might be some others we could improve. float4_accum() and
> float8_accum() look like they could be improved pretty easily, and
> do_numeric_accum() should also be fixable with some hackery. I suppose
> it's also worth optimizing int2_sum(), int4_sum() and int8_sum(). I'll
> send a patch for this later today or tomorrow. Are there any other
> transition functions where we can apply this technique?
Actually, do_numeric_accum can't be fixed easily because numeric is a
varlena type. The basic requirement for this hack is that the size of
the transition value be constant ...
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера