Re: Distinct types

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Subject: Re: Distinct types
Date: 2008-11-01 20:22:00
Message-ID: 200811012222.00428.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-11-01 20:38:06 Re: Distinct types
Previous Message Robert Haas 2008-11-01 20:21:30 Re: Well done, Hackers