| От | Richard Huxton |
|---|---|
| Тема | Re: Serial column has suddenly stopped working |
| Дата | |
| Msg-id | 41C18792.8030309@archonet.com обсуждение исходный текст |
| Ответ на | Serial column has suddenly stopped working (Malcolm Warren <malcolm@villeinitalia.com>) |
| Список | pgsql-general |
Malcolm Warren wrote:
> I have been using a serial column in my most important postgres table
> for a couple of years.
>
> But today it has suddenly started assigning zero instead of the next
> number, which clearly is causing chaos.
> I have restarted Postgres, but it has not solved the problem. I cannot
> re-assign the serial number because it is tied to other tables.
> Anybody had this problem??
>
> I have reached number 14954 which we can't exactly call a high number.
>
> The column description is as follows:
>
> Name srl
> type bigint
> modifiers default nextval(booking_srl_seq::text)
What happens if you go SELECT nextval('booking_srl_seq') - do you get
the expected number?
--
Richard Huxton
Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера