Re: anyelement -> anyrange

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: anyelement -> anyrange
Дата
Msg-id 8141.1471317178@sss.pgh.pa.us
обсуждение исходный текст
Ответ на anyelement -> anyrange  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Ответы Re: anyelement -> anyrange  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-hackers
Jim Nasby <Jim.Nasby@BlueTreble.com> writes:
> Any reason why we can create a function that accepts anyelement and 
> returns anyarray, but can't do the same with anyrange?

Because there can be more than one range type over the same element
type, so we couldn't deduce which one should be used for anyrange.

The other direction (inferring anyelement from anyrange) does work.
        regards, tom lane



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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: anyelement -> anyrange
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Why --backup-and-modify-in-place in perltidy config?