From: | "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> |
---|---|
To: | "David E(dot) Wheeler" <david(at)kineticode(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Type Categories for User-Defined Types |
Date: | 2008-07-30 17:55:10 |
Message-ID: | 489064AE.EE98.0025.0@wicourts.gov |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>>> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-07-30 18:09:50 | Re: Type Categories for User-Defined Types |
Previous Message | David E. Wheeler | 2008-07-30 17:42:24 | Re: Type Categories for User-Defined Types |