Re: [HACKERS] empty concatenate

From: "D'Arcy" "J(dot)M(dot)" Cain <darcy(at)druid(dot)net>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: pgsql-hackers(at)postgreSQL(dot)org, zakkr(at)zf(dot)jcu(dot)cz, sszabo(at)bigpanda(dot)com
Subject: Re: [HACKERS] empty concatenate
Date: 1999-12-24 02:29:08
Message-ID: m121KTc-0000daC@druid.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thus spake Tom Lane
> "D'Arcy" "J.M." Cain <darcy(at)druid(dot)net> writes:
> >> ! Why is textcat() (and other) function called if result from this
> >> function is ignored, it is bad spending (my CPU is not boredom). See
> >> my 'C' example in my first letter...
>
> > This is the issue no matter which side of the debate you are on.
>
> "Debate"? There's no debate --- everybody agrees that the current
> fmgr interface doesn't handle NULLs reasonably. It's just a matter
> of finding time to fix it. It's a fairly large project, given the
> amount of code that needs to be touched.

Well, it may have been a lopsided (and friendly) debate but there was
definitely two sides. The one (which I assume you mean as the one
that "everyone" accepts says to stick to SQL conformance and fix it
so that the functions are just never called. The other said to have
the functions called then use the value returned so that each function
could decide what to do with NULLs.

--
D'Arcy J.M. Cain <darcy(at){druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 1999-12-24 03:49:17 Announcing PostgreSQL 6.5.3-3 and 6.5.3-3nl RPMs.
Previous Message Bruce Momjian 1999-12-24 02:12:41 Re: [HACKERS] Source code format votes