Re: Type modifiers for DOMAIN

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Type modifiers for DOMAIN
Date: 2010-01-06 17:54:58
Message-ID: 4B44CE72.3070503@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> /* Domains never accept typmods, so no typmodin/typmodout needed */
> but can we relax the restriction? This feature would be useful for migration
> from other DBMSes that have non-standard data types.

For migration, wouldn't it be adequate simply to ignore the typemod? Or
to allow it as part of the type name? e.g.:

create domain "varchar2(10)" AS varchar
check ( length(value) <= 10 );

I know that wouldn't actually work, but you see what I'm getting at?

--Josh Berkus

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2010-01-06 17:59:04 Re: pg_migrator issues
Previous Message Robert Haas 2010-01-06 17:54:43 Re: fastgetattr & isNull