Re: SERIAL datatype, int or bigint?

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: SERIAL datatype, int or bigint?
Дата
Msg-id 1015546392.19014.9.camel@jiro
обсуждение исходный текст
Ответ на SERIAL datatype, int or bigint?  (Rob Hoopman <rob@tuna.nl>)
Список pgsql-general
On Thu, 2002-03-07 at 17:24, Rob Hoopman wrote:
> Hi,
> Does anyone know why the serial datatype inserts an int column into a
> table but the max_value for the sequence is a bigint?

In 7.2, sequences generate int64 values. Serial columns are int32 by
default: if you want 64 bit serials, use the "bigserial" or "serial8"
data-type.

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC


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

Предыдущее
От: "David Blood"
Дата:
Сообщение: how to select a date + column
Следующее
От: Justin Clift
Дата:
Сообщение: PostgreSQL for PS/2 ?