Re: Schemata & User-Defined-Type casting issues

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Schemata & User-Defined-Type casting issues
Дата
Msg-id 2732.1086099941@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Schemata & User-Defined-Type casting issues  (Chris Gamache <cgg007@yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: Chris Gamache
Дата:
Сообщение: Schemata & User-Defined-Type casting issues
Следующее
От: mallah@trade-india.com
Дата:
Сообщение: Query becoming slower on adding a primary key