Re: inconsistent composite type null handling in plpgsql out variable

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: inconsistent composite type null handling in plpgsql out variable
Дата
Msg-id 4A97CFB7020000250002A521@gw.wicourts.gov
обсуждение исходный текст
Ответ на inconsistent composite type null handling in plpgsql out variable  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: inconsistent composite type null handling in plpgsql out variable
Список pgsql-bugs
Merlin Moncure <mmoncure@gmail.com> wrote:

> This leads to some very weird behaviors, for example 'coalesce(foo,
> something)' and 'case when foo is null then something else foo end'
> can give different answers.

Quite apart from the issue you're pursuing, this is another example of
how the COALESCE predicate in PostgreSQL is not compliant with the
standard, where it is *defined as* an abbreviation of the CASE
predicate.

I might be persuaded otherwise by a reference to the standard, but my
understanding is that the CASE predicate should be conceptually
similar to the "? :" predicate in C.  Does anyone else feel that these
aren't implemented quite right in PostgreSQL?

-Kevin

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: BUG #5013: Error in psqlodbc configuration
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: inconsistent composite type null handling in plpgsql out variable