Re: Schemata & User-Defined-Type casting issues - Mailing list pgsql-sql

From Tom Lane
Subject Re: Schemata & User-Defined-Type casting issues
Date
Msg-id 2732.1086099941@sss.pgh.pa.us
Whole thread Raw
In response to Schemata & User-Defined-Type casting issues  (Chris Gamache <cgg007@yahoo.com>)
List pgsql-sql
Chris Gamache <cgg007@yahoo.com> writes:
> I'm using the "uniqueidentifier" column in some of these tables. When
> I created the new schema, I created an instance of "uniqueidentifier"
> and its supporting functions and casts within the new schema. When I
> try to "INSERT INTO myschema.mytable ... SELECT ... FROM
> public.mytable;" It's having difficulty seeing that the data types are
> compatible across the schema.

Indeed, since as far as the system knows those two datatypes have
nothing to do with each other.  I'd go ahead and define an assignment
cast WITHOUT FUNCTION to let you do the conversion.
        regards, tom lane


pgsql-sql by date:

Previous
From: Chris Gamache
Date:
Subject: Schemata & User-Defined-Type casting issues
Next
From: mallah@trade-india.com
Date:
Subject: Query becoming slower on adding a primary key