Re: NUMERIC private methods?

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: NUMERIC private methods?
Дата
Msg-id 87tx0wm0w5.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Re: NUMERIC private methods?  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Ответы Re: NUMERIC private methods?  (David Fetter <david@fetter.org>)
Список pgsql-hackers
>>>>> "Heikki" == Heikki Linnakangas <hlinnakangas@vmware.com> writes:
Heikki> Looking at the weighed_stats code, this probably illustratesHeikki> the hoops you had to jump through:

Actually that hoop-jumping expression is almost irrelevant.

The part that hurts (and yes, it's performance that's at issue here,
and not code aesthetics) is not being able to use NumericVar in the
aggregate's transition variable, because that means that every
computed intermediate value is palloc'd and pfree'd twice (once as the
digit buffer of a NumericVar and again as a Numeric datum).

-- 
Andrew (irc:RhodiumToad)



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

Предыдущее
От: Petr Jelinek
Дата:
Сообщение: Re: TABLESAMPLE patch
Следующее
От: Satoshi Nagayasu
Дата:
Сообщение: Re: pg_rewind in contrib