Re: sequence increment jumps?

From: Douglas McNaught <doug(at)mcnaught(dot)org>
To: "John Smith" <jayzee(dot)smith(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: sequence increment jumps?
Date: 2007-01-25 17:53:57
Message-ID: 873b5zgfgq.fsf@suzuka.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"John Smith" <jayzee(dot)smith(at)gmail(dot)com> writes:

> 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.

Nature of the beast. Sequence increments aren't rolled back on
transaction abort (for performance and concurrency reasons), so you
should expect gaps.

-Doug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2007-01-25 17:56:07 Re: sequence increment jumps?
Previous Message Bruno Wolff III 2007-01-25 17:51:41 Re: column limit