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 26907.1217370910@sss.pgh.pa.us
Whole thread Raw
In response to Re: Type Categories for User-Defined Types  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Type Categories for User-Defined Types  ("David E. Wheeler" <david@kineticode.com>)
List pgsql-hackers
I wrote:
> "David E. Wheeler" <david@kineticode.com> writes:
>> Anyway, would this issue then go away once the type stuff was added  
>> and citext was specified as TYPE = 'S'?

> Yeah, that's the point of the proposal.

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.

You might still want to keep the aliases in cases where the point is to
have the function or operator output resolve as citext rather than text.
I'm not sure how many of these cases that's really important for,
though.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Jan Urbański
Date:
Subject: Re: gsoc, oprrest function for text search take 2
Next
From: "David E. Wheeler"
Date:
Subject: Re: Type Categories for User-Defined Types