Re: Compatibility types, type aliases, and distinct types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compatibility types, type aliases, and distinct types
Date: 2008-08-18 14:26:16
Message-ID: 18739.1219069576@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2008-08-18 14:53:51 Re: [COMMITTERS] pgsql: Make the pg_stat_activity view call a SRF
Previous Message K, Niranjan (NSN - IN/Bangalore) 2008-08-18 14:12:15 Re: Postgres-R