Re: BUG #2375: ALTER COLUMN TYPE on composite types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2375: ALTER COLUMN TYPE on composite types
Дата
Msg-id 13727.1144179932@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2375: ALTER COLUMN TYPE on composite types  ("George Barbarosie" <george.barbarosie@gmail.com>)
Список pgsql-bugs
"George Barbarosie" <george.barbarosie@gmail.com> writes:
> CREATE TYPE composite AS (
>     label varchar(20),
>     data  varchar(1000) );

> CREATE TYPE composite2 AS (
>     label   varchar(20),
>     data    text );

> CREATE CAST (composite as composite2) WITHOUT FUNCTION AS IMPLICIT;

The above is invalid --- since values of composite types have their type
OID embedded in them, a coercion can't simply be a relabeling.  You've
used your superuser powers to break the system, as is all too easy with
binary casts :-(

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Rick Craft"
Дата:
Сообщение: BUG #2374: Installation Error
Следующее
От: Euler Taveira de Oliveira
Дата:
Сообщение: Re: NLS vs error processing, again (was Re: Composite Type