Re: Large database design advice

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Large database design advice
Дата
Msg-id 20060824173710.GA30872@winnie.fuhr.org
обсуждение исходный текст
Ответ на Large database design advice  ("Joe Kramer" <cckramer@gmail.com>)
Список pgsql-general
On Thu, Aug 24, 2006 at 07:19:29PM +0200, Harald Armin Massa wrote:
> so with serial there are only 2.147.483.648 possible recordnumbers.

Actually 2147483647 using the default sequence start value of 1 and
going up to 2^31 - 1, the largest positive value a 32-bit integer
can hold.  You could get the full 32-bit range (4294967296) by
allowing negative numbers and setting the sequence's MINVALUE and
RESTART value to -2^31 (-2147483648).

> Which should still be enough for "millions of records"

Correct.

--
Michael Fuhr

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: invalid byte sequence ?
Следующее
От: Rajarshi Guha
Дата:
Сообщение: Re: getting around 'out of memory' errors