Re: 7.2.1: coalesce double-calls function?

From: Jeff Eckermann <jeff_eckermann(at)yahoo(dot)com>
To: "SZCS" "Gbor" <surrano(at)mailbox(dot)hu>, pgsql-general(at)postgresql(dot)org
Subject: Re: 7.2.1: coalesce double-calls function?
Date: 2003-01-24 15:31:27
Message-ID: 20030124153127.73831.qmail@web20805.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--- SZCS Gbor <surrano(at)mailbox(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nigel J. Andrews 2003-01-24 15:35:28 More PHP DB abstraction layer stuff
Previous Message Tom Lane 2003-01-24 15:25:48 Re: psql 7.3.1 crash