Re: BUG #9366: Default MAXVALUE is incorrect for sequence object of serial type
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #9366: Default MAXVALUE is incorrect for sequence object of serial type |
| Дата | |
| Msg-id | 19374.1393484563@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | BUG #9366: Default MAXVALUE is incorrect for sequence object of serial type (kashi@fhpg.net) |
| Список | pgsql-bugs |
kashi@fhpg.net writes: > When I create the new table as serial type column , I found a strange > condition on sequence parameter. > It could be specified as integer, but MAXVALUE of sequence is set as > Bigint. This is not a bug, but intentional behavior. See http://www.postgresql.org/message-id/flat/E1VeK8A-0006V4-EX@wrigleys.postgresql.org#E1VeK8A-0006V4-EX@wrigleys.postgresql.org > At that case, MAXVALUE of test_int_seq_int_seq is "9223372036854775807". As > the result, if the current value is 2147483647, next insert operation could > be failed as "ERROR: integer out of range". So? If we set the sequence limit differently, the case would still fail, just with a different error message. And you'd then have two things to fix, not only one, to get your database back in working order. regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера