Re: Patch for 8.5, transformationHook

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Patch for 8.5, transformationHook
Дата
Msg-id 22335.1249929647@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Patch for 8.5, transformationHook  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: Patch for 8.5, transformationHook  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-hackers
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Still, it rates pretty high on my astonishment scale that a
> COALESCE of two untyped NULLs (or for that matter, any two values of
> unknown type) returns a text value.

What would you have it do instead, throw an error?

The current behavior is a lot less astonishing for this example:COALESCE('a', 'b')
which is the same from the type system's point of view.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: WIP: to_char, support for EEEE format
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #4961: pg_standby.exe crashes with no args