| От | Michael Hall |
|---|---|
| Тема | Re: Serial/sequence problem |
| Дата | |
| Msg-id | 20081125080949.GA6426@server1.jarvisstreet.com обсуждение исходный текст |
| Ответ на | Re: Serial/sequence problem ("A. Kretschmer" <andreas.kretschmer@schollglas.com>) |
| Ответы |
Re: Serial/sequence problem
|
| Список | pgsql-general |
> The 3636 INSERT-Statements contains a fix value for the ID-Column,
> right? Thats wrong, omit the id-column and value or use simply 'default' for it.
That's right. I thought that might be the case.
> > - how can I rectify the situation?
> Set the sequence to the new value, 3636+9, via
> setval('your_sequence', 3636+9)
I'll re-import the data with DEFAULT in the id (SERIAL) column, hopefully new inserts will be OK then and I can leave
thesequence alone?
Thanks
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера