Re: Type Categories for User-Defined Types - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Type Categories for User-Defined Types
Date
Msg-id 2313.1217375111@sss.pgh.pa.us
Whole thread Raw
In response to Re: Type Categories for User-Defined Types  ("David E. Wheeler" <david@kineticode.com>)
Responses Re: Type Categories for User-Defined Types  ("David E. Wheeler" <david@kineticode.com>)
List pgsql-hackers
"David E. Wheeler" <david@kineticode.com> writes:
> On Jul 29, 2008, at 15:35, Tom Lane wrote:
>> BTW, I did confirm (by temporarily hacking up TypeCategory()) that
>> causing citext to appear to be of STRING category eliminates the need
>> for the extra || operator and quote_literal() function that are in
>> the current citext code.  So the proposed solution really will work.

> Nice! Does it also allow all of the casts to and from text to  
> implicitly work, e.g,

No, but we could think about that.  Do we really want that to work for
any member of the string category?  It seems a bit overly broad to me
...
        regards, tom lane


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: Type Categories for User-Defined Types
Next
From: "David E. Wheeler"
Date:
Subject: Re: Type Categories for User-Defined Types