polymorphic types - enforce casting to most common type automatically

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема polymorphic types - enforce casting to most common type automatically
Дата
Msg-id CAFj8pRBaebtOTgMDUTQshGTd5+U+4qLmkyYO=r=X1bVcifOsfA@mail.gmail.com
обсуждение исходный текст
Ответы Re: polymorphic types - enforce casting to most common type automatically  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: polymorphic types - enforce casting to most common type automatically  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello

now a functions with more than one polymorphic arguments are relative fragile due missing casting to most common type. Some our "functions" like "coalesce" can do it, so it is surprising for our users.

our custom polymorphic function foo(anyelement, anyelement) working well for

foo(10,20) or foo(10.1, 20.1), but not for foo(10, 20.1)

I am thinking, so we can add a searching most common type stage without breaking to backing compatibility.

What do you think about it?

Regards

Pavel

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: proposal: plpgsql - Assert statement
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Turning recovery.conf into GUCs