Re: Compatibility types, type aliases, and distinct types - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Compatibility types, type aliases, and distinct types
Date
Msg-id 18739.1219069576@sss.pgh.pa.us
Whole thread Raw
In response to Compatibility types, type aliases, and distinct types  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Compatibility types, type aliases, and distinct types  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> So while thinking about how to make this simpler I remembered the "distinct 
> type" feature of SQL, which works quite similarly, namely the new type has 
> the same structure as the old type, but is a separate entity.  It looks like
>     CREATE TYPE newtype AS oldtype;
> This feature by itself could be quite useful, and then we could simply add 
> something like
>     CREATE TYPE newtype AS oldtype WITH CASTS;

This seems like a great way to get lost in "ambiguous function" hell ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: "K, Niranjan (NSN - IN/Bangalore)"
Date:
Subject: Re: Postgres-R
Next
From: Bruce Momjian
Date:
Subject: Re: [COMMITTERS] pgsql: Make the pg_stat_activity view call a SRF