Sequence skipping values - Mailing list pgsql-general

From Jean-Christophe Roux
Subject Sequence skipping values
Date
Msg-id 20060210174428.37387.qmail@web35302.mail.mud.yahoo.com
Whole thread Raw
Responses Re: Sequence skipping values  (Csaba Nagy <nagy@ecircle-ag.com>)
Re: Sequence skipping values  (Scott Marlowe <smarlowe@g2switchworks.com>)
Re: Sequence skipping values  (Steve Crawford <scrawford@pinpointresearch.com>)
List pgsql-general
Hello,
I have a table with and id field (primary key) which default value is the result of a sequence (increment explicitly set to 1).
To my surprise, the real increment on insert is the total number of rows of the table. For instance, with 41 rows and a sequence last_value of 1141, the next insert row will have a value of 1182. It is not a big problem but I don't like skipping and wasting values in a sequence. Also, I'd like to understand what's going on!
If someone could give me a clue that wold be greatly appreciated
thanks
JC


Brings words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.

pgsql-general by date:

Previous
From: Bob Pawley
Date:
Subject: Re: Tool
Next
From: Csaba Nagy
Date:
Subject: Re: Sequence skipping values