Re: Inconsistent casts

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Inconsistent casts
Date: 2002-09-14 02:57:24
Message-ID: 23045.1031972244@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2002-09-14 03:06:48 Re: DROP TABLE... CASCADE weirdness
Previous Message Tom Lane 2002-09-14 02:50:27 Re: DROP TABLE... CASCADE weirdness