| От | Tom Lane |
|---|---|
| Тема | Re: Patch for 8.5, transformationHook |
| Дата | |
| Msg-id | 12390.1249923462@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Patch for 8.5, transformationHook ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>) |
| Список | pgsql-hackers |
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Peter Eisentraut <peter_e@gmx.net> wrote:
>> reimplement a bunch of core functionality like COALESCE
> If such an effort could reduce the astonishment factor for the
> following, it would justify a certain amount of effort, in my view:
> test=# select pg_typeof('x');
> pg_typeof
> -----------
> unknown
> (1 row)
> test=# select pg_typeof(null);
> pg_typeof
> -----------
> unknown
> (1 row)
> test=# select pg_typeof(coalesce(null, null));
> pg_typeof
> -----------
> text
> (1 row)
The astonishment factor there has nothing to do with how the behavior is
inserted into the parser; it's a property of our type resolution rules.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера