sequence increment jumps?

Поиск
Список
Период
Сортировка
От John Smith
Тема sequence increment jumps?
Дата
Msg-id f029597e0701250933y2bd6a2ccq7bdef7e29cfce561@mail.gmail.com
обсуждение исходный текст
Ответы Re: sequence increment jumps?  (Douglas McNaught <doug@mcnaught.org>)
Re: sequence increment jumps?  (Bruno Wolff III <bruno@wolff.to>)
Re: sequence increment jumps?  ("Merlin Moncure" <mmoncure@gmail.com>)
Список pgsql-general
guys,
i inserted 1 record into my database (default
nextval('sequencename'::regclass) where (start 1 increment 1)). then i
tried to insert 1 other record twice but both those inserts failed
because of a domain check ("ERROR: value too long for type character
varying(X)". when i was finally able to insert that record the
sequence jumped 2 places. seems like it counted the failed inserts?

i had insert errors yesterday ("ERROR: invalid input syntax for
integer" "ERROR: column 'columnname' is of type date but expression is
of type integer") but they didn't cause any increment jumps. and when
i insert a record now the sequence increments just fine.

bug or nature of the beast? how to reset? btw using 8.1, got no other
sessions, no record deletes, no triggers, no rules.
jzs

http://www.postgresql.org/docs/8.1/interactive/sql-createsequence.html
http://archives.postgresql.org/pgsql-general/2001-11/msg01004.php
http://archives.postgresql.org/pgsql-admin/2002-02/msg00335.php

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

Предыдущее
От: "Jeremy Haile"
Дата:
Сообщение: Re: Stats collector frozen?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Stats collector frozen?