Re: auto-increment field : in a simple way

Поиск
Список
Период
Сортировка
От Vineet Deodhar
Тема Re: auto-increment field : in a simple way
Дата
Msg-id CAP5=7ookywwjkRZfv3UrpericdGYQPd_jVhntQv-BhsdWsRzmg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: auto-increment field : in a simple way  (Scott Marlowe <scott.marlowe@gmail.com>)
Ответы Re: auto-increment field : in a simple way  (JC de Villa <jc.devilla@gmail.com>)
Re: auto-increment field : in a simple way  (Craig Ringer <ringerc@ringerc.id.au>)
Список pgsql-general
On Thu, Oct 11, 2012 at 12:56 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:

Can't you just add this to your create table:


CREATE TABLE tablename (
   colname SERIAL
, check (colname>0 and colname < 32768));
);



With this constraint, whether the storage space requirement would reduce?
OR
Is it just for validation of data?

--- Vineet

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

Предыдущее
От: Vineet Deodhar
Дата:
Сообщение: Re: moving from MySQL to pgsql
Следующее
От: Condor
Дата:
Сообщение: How to raise index points when equal and like is used with gist?