Re: Different behaviour of concate() and concate operator ||

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Different behaviour of concate() and concate operator ||
Дата
Msg-id 22619.1398705956@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Different behaviour of concate() and concate operator ||  (Greg Stark <stark@mit.edu>)
Ответы Re: Different behaviour of concate() and concate operator ||  (amul sul <sul_amul@yahoo.co.in>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: includedir_internal headers are not self-contained
Следующее
От: Claudio Freire
Дата:
Сообщение: Re: allowing VACUUM to be cancelled for conflicting locks