Serial/sequence problem

Поиск
Список
Период
Сортировка
От Mike Hall
Тема Serial/sequence problem
Дата
Msg-id E597F8097C342B438782B2768D7F123D38A7F32514@tempo.astc.nt.gov.au
обсуждение исходный текст
Ответы Re: Serial/sequence problem  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-general
I have just imported 3636 rows into a PG database table (PG 8.1 on CentOS 5.2 ... the default).
The rows were imported using separate INSERT statements for each row. All OK so far.

After having had a few attempts at inserting new test rows (which all inserted OK), I notice that the last_value count
inthe sequence for this table is only 9. I was expecting something above 3636 of course. So now I'm getting duplicate
serialnumbers in my SERIAL id field. 

It appears to be not possible to manually update the last_count value in the sequence table (currently 9, though the
tablecontains 3636+9 rows), so I'm wondering: 

- what did I do wrong to arrive in this situation?
- how can I rectify the situation?

Thanks

Mick


В списке pgsql-general по дате отправления:

Предыдущее
От: Abdul Rahman
Дата:
Сообщение: Re: [ADMIN] PgAgent Job Scehduler is NOT running
Следующее
От: Abdul Rahman
Дата:
Сообщение: Re: [ADMIN] PgAgent Job Scehduler is NOT running