Re: How can I get a column INT4 to be UNSIGNED ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: How can I get a column INT4 to be UNSIGNED ?
Date: 2003-04-15 23:29:48
Message-ID: 10976.1050449388@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Ron Johnson wrote:
>> When domains allow CHECK constraints, that would be simplified, wouldn't
>> it?

> I thought we did support it:

> test=> CREATE DOMAIN unsigned AS int4 CHECK ( VALUE > 0);
> CREATE DOMAIN

It's new for 7.4, though.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lamar Owen 2003-04-15 23:47:08 Re: Upgrade to Red Hat Linux 9 broke PostgreSQL
Previous Message Tom Lane 2003-04-15 23:28:27 Re: Are we losing momentum?