Re: Type Categories for User-Defined Types

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Type Categories for User-Defined Types
Дата
Msg-id 489064AE.EE98.0025.0@wicourts.gov
обсуждение исходный текст
Ответ на Re: Type Categories for User-Defined Types  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>>> Tom Lane <tgl@sss.pgh.pa.us> wrote: 
> and you have to remember that *any* domain created over a string
type
> will also be considered to be of string category.
> find_coercion_pathway
> is looking at types that it's already smashed to base types, so
> actually you can get an I/O conversion for a domain over one of
these
> types already!
> 
> regression=# create domain d2 as varchar(2);
> CREATE DOMAIN
> regression=# select 123::int4::d2;
>  d2 
> ----
>  12
> (1 row)
I would find is surprising if a domain didn't share these properties
with its underlying type.
-Kevin


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

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Type Categories for User-Defined Types
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Type Categories for User-Defined Types