Re: Different behaviour of concate() and concate operator || - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Different behaviour of concate() and concate operator ||
Date
Msg-id 22619.1398705956@sss.pgh.pa.us
Whole thread Raw
In response to Re: Different behaviour of concate() and concate operator ||  (Greg Stark <stark@mit.edu>)
Responses Re: Different behaviour of concate() and concate operator ||  (amul sul <sul_amul@yahoo.co.in>)
List pgsql-hackers
Greg Stark <stark@mit.edu> writes:
> The missing bit of context is that concat() is there because early on
> in Postgres's life there was an effort to have a full suite of Oracle
> compatibility functions. If someone suggested it now they would be
> pushed towards making it an extension or pointed at EDB. But things
> like concat are the remnants of that.

Well, that's historical revisionism, because concat() was added in 9.1.
But if it was defined this way for Oracle compatibility, that makes
sense, because Oracle doesn't distinguish NULL from empty strings.
So they pretty much would have to make concat() treat NULL as empty.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: includedir_internal headers are not self-contained
Next
From: Claudio Freire
Date:
Subject: Re: allowing VACUUM to be cancelled for conflicting locks