Re: IS it a good practice to use SERIAL as Primary Key?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: IS it a good practice to use SERIAL as Primary Key?
Дата
Msg-id 7316.1164249190@sss.pgh.pa.us
обсуждение исходный текст
Ответ на IS it a good practice to use SERIAL as Primary Key?  ("carter ck" <carterck32@hotmail.com>)
Список pgsql-general
"carter ck" <carterck32@hotmail.com> writes:
> I am wonderring if it is a good practice to use SERIAL index as primary key,
> as it is only available up to 9999999?

Where in the world did you get that idea?

SERIAL goes up to 2^31 (2 billion); if you need more use BIGSERIAL.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 8.2Beta3 - create view testview (a,b,c) values (1,2,3),(4,5,6),...
Следующее
От: Richard Broersma Jr
Дата:
Сообщение: Re: IS it a good practice to use SERIAL as Primary Key?