Re: self defined data type "with limit"? - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: self defined data type "with limit"?
Date
Msg-id 20070627161454.GA22179@svana.org
Whole thread Raw
In response to self defined data type "with limit"?  (Michael Enke <michael.enke@wincor-nixdorf.com>)
Responses Re: self defined data type "with limit"?  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-hackers
On Wed, Jun 27, 2007 at 02:08:43PM +0200, Michael Enke wrote:
> Hello everyone,
> I have created a new data type "mychar". How can I specify a limit for it?
>
> This (unlimited version) works fine:
> create table table_a(col_a mychar);

What you want is called "user defined typmod" and I don't beleive any
released version has it, but it will be in the next release.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bgwriter LRU cleaning: we've been going at this all wrong
Next
From: Florian Pflug
Date:
Subject: Re: Bugtraq: Having Fun With PostgreSQL