type aliases - Mailing list pgsql-general

From James Harper
Subject type aliases
Date
Msg-id 6035A0D088A63A46850C3988ED045A4B6F3A5466@BITCOM1.int.sbss.com.au
Whole thread Raw
Responses Re: type aliases  (Behrang Saeedzadeh <behrangsa@gmail.com>)
List pgsql-general
I can create an alias of a type like:

CREATE DOMAIN myvarchar varchar;

But I can't declare a myvarchar with a variable size, eg "mycolumn myvarchar(42)" and from what I've read this is the
wayit DOMAIN is supposed to work so I can't do it that way. 

Is there a way to define myvarchar the way I want to? Can I use CREATE TYPE and just mirror the declaration of the
underlyingtype? 

Thanks

James



pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Is it reasonable to store double[] arrays of 30K elements
Next
From: Behrang Saeedzadeh
Date:
Subject: Re: type aliases