Re: Inconsistent casts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Inconsistent casts
Дата
Msg-id 23045.1031972244@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Inconsistent casts  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Since almost every cast to "text" is implicit, then I believe so should
> inet -> text
> macaddr -> text
> int4 -> varchar
> int8 -> varchar
> which are currently not.

I would like to see us *eliminate* implicit casts to text.  Not add more.

See my prior rants on subject... but the core of the matter is that if
every datatype can be implicitly casted to text then you have no type
safety worthy of the term.  We have open bug reports that reduce to this.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: DROP TABLE... CASCADE weirdness
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: DROP TABLE... CASCADE weirdness