Re: Schemata & User-Defined-Type casting issues

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: cgg007(at)yahoo(dot)com
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Schemata & User-Defined-Type casting issues
Date: 2004-06-01 14:25:41
Message-ID: 2732.1086099941@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Chris Gamache <cgg007(at)yahoo(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message mallah 2004-06-01 19:21:10 Query becoming slower on adding a primary key
Previous Message Bruno Wolff III 2004-06-01 14:03:34 Re: sum ( time) problem