Tom Lane wrote:
Heikki Linnakangas <[EMAIL PROTECTED]> writes:
Patch attached. I'm using a magic OID "1" in pg_cast.castfunc field to
mark these extra I/O conversion casts.

Ugh.  That's really unacceptable (doesn't it make the oidjoins
regression test fail?),

Yeah, it does if you create a cast like that. And pg_dump/restore will need to be taught about it as well.

I think that as things stand at the moment, you can get I/O conversion
casts to work for a user-defined type by making it be of string
category.  Maybe that would be an easier way to get the effect.

Hmm. That would be sensible only for types that are, well, strings. Not if you wanted to make the cast from, say, int4 to text implicit.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to