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

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: How can I get a column INT4 to be UNSIGNED ?
Дата
Msg-id 200304152124.h3FLOsm09942@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: How can I get a column INT4 to be UNSIGNED ?  (Ron Johnson <ron.l.johnson@cox.net>)
Ответы Re: How can I get a column INT4 to be UNSIGNED ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Ron Johnson wrote:
> On Fri, 2003-04-11 at 16:09, Dennis Gearon wrote:
> > If he wants the full range of an INT4 unsigned,  he needs to go to INT8 with the
> > constraint you mentioned. The underlying col type of INT4 only supports HALF of
> > the range of an INT4 unsigned, in the positive domain, that is.
>
> 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

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073


В списке pgsql-general по дате отправления:

Предыдущее
От: Medi Montaseri
Дата:
Сообщение: Re: Postgres Compare
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: OT: mail server blocked