Re: Suboptimal evaluation of CASE expressions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Suboptimal evaluation of CASE expressions
Дата
Msg-id 11081.1144791266@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Suboptimal evaluation of CASE expressions  (Andreas Tille <tillea@rki.de>)
Список pgsql-hackers
Andreas Tille <tillea@rki.de> writes:
> I'm lacking experience here so I perfectly trust you that keeping
> the default case as it is.  The question is, whether adding an
> option to change the default might make sense.

I don't think so.  The current API contract for aggregate functions is
that the finalfunc will be called exactly once per aggregate occurrence.
Changing that to say "maybe you'll get called and maybe you won't" does
not strike me as making life easier for aggregate authors, rather the
reverse --- for example, the finalfunc might need to clean up some
working state.
        regards, tom lane


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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: plpgsql by default
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: How to implement oracle like rownum(function or seudocolumn)