Re: Improve upcasting for INT range and multi range types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Improve upcasting for INT range and multi range types
Дата
Msg-id 2529538.1702440987@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Improve upcasting for INT range and multi range types  (jian he <jian.universality@gmail.com>)
Ответы Re: Improve upcasting for INT range and multi range types  (Federico <cfederico87@gmail.com>)
Список pgsql-hackers
jian he <jian.universality@gmail.com> writes:
> Based on my interpretation, I don't think SELECT 2::INT4 <@ '[1,
> 4)'::INT8RANGE is doable.

Yeah, it would require a considerable expansion of the scope of
what can be matched by a polymorphic operator.  I'm afraid that
the negative consequences (mainly, "ambiguous operator" failures
because more than one thing can be matched) would outweigh the
benefits.  It is kind of annoying though that the system can't
do the "obvious" right thing here.

            regards, tom lane



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

Предыдущее
От: jian he
Дата:
Сообщение: Re: Improve upcasting for INT range and multi range types
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: SLRU optimization - configurable buffer pool and partitioning the SLRU lock