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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How can I get a column INT4 to be UNSIGNED ?
Дата
Msg-id 11204.1050069949@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How can I get a column INT4 to be UNSIGNED ?  ("Bruno Baguette" <bruno.baguette@netcourrier.com>)
Ответы Re: How can I get a column INT4 to be UNSIGNED ?  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-general
"Bruno Baguette" <bruno.baguette@netcourrier.com> writes:
> So, is it possible to create a column with an UNSIGNED INT4 type ?

No.

You could use OID, which just happens to be 4 bytes unsigned.  But a
cleaner approach IMHO would be to use int8 and put a CHECK constraint
on it to limit the range of values.

            regards, tom lane


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

Предыдущее
От: "Thomas Mammen"
Дата:
Сообщение: help Request
Следующее
От: Shridhar Daithankar
Дата:
Сообщение: Re: help Request