Re: Distinct types - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Distinct types
Date
Msg-id 200811012222.00428.peter_e@gmx.net
Whole thread Raw
In response to Re: Distinct types  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: Distinct types  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Friday 31 October 2008 17:01:05 Kevin Grittner wrote:
> I notice there's no documentation yet.  Do you have a reference to a
> good description of the feature, consistent with your implementation?

Documentation will need to be added, of course, but there isn't really a lot 
to describe: you create the type and use it.

> If not, a couple questions:
>
> (1)  Can you compare a literal of the base type?

No, unless you create additional casts or operators.

> (2)  Can you explicitly cast to the base type?

There is an implicit AS ASSIGNMENT cast between the base type and the distinct 
type in each direction.


pgsql-hackers by date:

Previous
From: "Robert Haas"
Date:
Subject: Re: Well done, Hackers
Next
From: Tom Lane
Date:
Subject: Re: Distinct types