From: Jean-Christophe Roux <jcxxr@yahoo.com>
To: pgsql-general@postgresql.org
Date: Fri, 10 Feb 2006 09:42:54 -0800 (PST)
Message-ID: <20060210174254.50639.qmail@web35307.mail.mud.yahoo.com> (raw)
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
---------------------------------
What are the most popular cars? Find out at Yahoo! Autos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: jcxxr@yahoo.com
Subject: Re:
In-Reply-To: <20060210174254.50639.qmail@web35307.mail.mud.yahoo.com>
References: <20060210174254.50639.qmail@web35307.mail.mud.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox