| От | d.j.yotta@gmail.com |
|---|---|
| Тема | BUG #14049: Integer out of range on insert with default id |
| Дата | |
| Msg-id | 20160328230632.2903.42295@wrigleys.postgresql.org обсуждение |
| Ответы |
Re: BUG #14049: Integer out of range on insert with default id
|
| Список | pgsql-bugs |
The following bug has been logged on the website: Bug reference: 14049 Logged by: Daniel Sheffield Email address: d.j.yotta@gmail.com PostgreSQL version: 9.5.1 Operating system: Linux x64 Description: Not sure if this is a bug, but it seems strange to me that the SERIAL numeric type is 4 bytes, yet the default backing sequence for which nextval() is called is 8 bytes. http://www.postgresql.org/docs/9.5/static/datatype-numeric.html I'm seeing 'integer out of range' upon inserting into a table where all of the parameters look fine. The id parameter is not specified and hence will be generated automatically by the sequence, causing the insert to fail if the generated id is bigger than maximum int value.
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера