Re: Improving avg performance for numeric

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Improving avg performance for numeric
Дата
Msg-id 6577.1363711548@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Improving avg performance for numeric  (Hadi Moshayedi <hadi@moshayedi.net>)
Ответы Re: Improving avg performance for numeric  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
[ please do not top-reply ]

Hadi Moshayedi <hadi@moshayedi.net> writes:
> On Tue, Mar 19, 2013 at 6:25 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Uh, what?  Fooling around with the implementation of avg() should surely
>> not change any planning decisions.

> I am not sure how this works, but I also changed numeric sum(), and the
> views in question had a numeric sum() column. Can that have any impact?

[ looks at patch... ]  Oh, I see what's affecting the plan: you changed
the aggtranstypes to internal for a bunch of aggregates.  That's not
very good, because right now the planner takes that to mean that the
aggregate could eat a lot of space.  We don't want that to happen for
these aggregates, I think.
        regards, tom lane



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

Предыдущее
От: Hadi Moshayedi
Дата:
Сообщение: Re: Improving avg performance for numeric
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Enabling Checksums