Re: BUG #14442: serial maxvalue incorrect

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #14442: serial maxvalue incorrect
Дата
Msg-id 19045.1480521675@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #14442: serial maxvalue incorrect  (josipa.milic@gmail.com)
Список pgsql-bugs
josipa.milic@gmail.com writes:
> When table is generated using pgadmin, sequence generated as serial has the
> same maxvalue as bigserial: 9223372036854775807

Yup.

> It should be max value that corresponds to integer: 2147483647

No, that's intentional.  If you never run out of serial numbers,
it's not going to matter.  If you do run out, you'll get an error
anyway (from trying to stuff a value > 2147483647 into an integer
column).  And the sequence limit will be one less thing you'll
have to change on the way to fixing it.

            regards, tom lane

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

Предыдущее
От: josipa.milic@gmail.com
Дата:
Сообщение: BUG #14442: serial maxvalue incorrect
Следующее
От: jec@jesc.ch
Дата:
Сообщение: BUG #14443: JDBC Driver > 1208 doesn't work with PGADV server