Re: 7.2.1: coalesce double-calls function?

Поиск
Список
Период
Сортировка
От Jeff Eckermann
Тема Re: 7.2.1: coalesce double-calls function?
Дата
Msg-id 20030124153127.73831.qmail@web20805.mail.yahoo.com
обсуждение исходный текст
Ответ на 7.2.1: coalesce double-calls function?  ("SZŰCS Gábor" <surrano@mailbox.hu>)
Список pgsql-general
--- SZ�CS G�bor <surrano@mailbox.hu> wrote:
> It seems that COALESCE(myfunc(),0) has almost
> twice the time of
> calling myfunc() alone! However, using two
> COALESCE's in a CASE does not
> double the time again.
>

Perhaps this is just avoiding the issue (if indeed
there is an issue), but why not just define myfunc()
to return zero instead of null?

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: psql 7.3.1 crash
Следующее
От: "Nigel J. Andrews"
Дата:
Сообщение: More PHP DB abstraction layer stuff