Re: Serial/sequence problem

Поиск
Список
Период
Сортировка
От 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  (Sam Mason <sam@samason.me.uk>)
Список 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 по дате отправления:

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Place of subselect
Следующее
От: "Guillaume Bog"
Дата:
Сообщение: Re: Place of subselect