Re: Wrong increments of Sequence

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: Wrong increments of Sequence
Дата
Msg-id 20070402151058.GA5689@KanotixBox
обсуждение исходный текст
Ответ на Wrong increments of Sequence  (RPK <rpk.general@gmail.com>)
Список pgsql-general
RPK <rpk.general@gmail.com> schrieb:

>
> I have created a sequence with minimum value=1 and increment=1. But whenever
> I enter a record in a table and use nextval('seqstudentmaster') to insert
> new studentid, it is incremented by 20. How to set it to increment by 1?

Can you show us an example and the definition for the sequence? It is
possible that there are other connections to this database,
other transactions? You know, a ROLLBACK doesn't rollback the
sequence-increment?


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

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

Предыдущее
От: "Shoaib Mir"
Дата:
Сообщение: Re: [ADMIN] Increasing the shared memory
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: COPY command details