aliasing and/or defining types

From: Matt Clark <mclark(at)rushe(dot)aero(dot)org>
To: pgsql-novice(at)postgresql(dot)org
Subject: aliasing and/or defining types
Date: 2003-03-27 19:52:52
Message-ID: 200303271952.h2RJqqS22191@rushe.aero.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Is there a simple way to create a type, which is a derived from an existing
type?

I need something like

create type newID as numeric(16,0);

create table xx (tid newID,.....);

I have existing SQL, with several types defined as above.
I hope not to have to edit all occurrences of "newID".......

Note that it's not a composite type, but just an instance of an existing type.

Thanks,

Matt

Browse pgsql-novice by date

  From Date Subject
Next Message Vittorio Zuccala' 2003-03-27 20:57:52 Re: get the oid
Previous Message Ennio-Sr 2003-03-27 19:22:23 Extended display and extended ascii characters