Skip site navigation (1) Skip section navigation (2)

Re: self defined data type "with limit"?

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Michael Enke <michael(dot)enke(at)wincor-nixdorf(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: self defined data type "with limit"?
Date: 2007-06-27 16:14:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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(at)svana(dot)org>
> From each according to his ability. To each according to his ability to litigate.

In response to


pgsql-hackers by date

Next:From: Florian PflugDate: 2007-06-27 16:23:49
Subject: Re: Bugtraq: Having Fun With PostgreSQL
Previous:From: Tom LaneDate: 2007-06-27 15:17:42
Subject: Re: Bgwriter LRU cleaning: we've been going at this all wrong

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group