Serials jumping - Mailing list pgsql-general

From Matt A.
Subject Serials jumping
Date
Msg-id 20050826090150.67833.qmail@web35212.mail.mud.yahoo.com
Whole thread Raw
Responses Re: Serials jumping  (Alban Hertroys <alban@magproductions.nl>)
Re: Serials jumping  (Richard Huxton <dev@archonet.com>)
List pgsql-general
I have a serial column on a test box DB. I'm
using "select nextval('some_seq') as id" to insert a
id in sequence. It doesn't return the next value but
at least 4 or so (random) ahead of the current
value. Is this to be expected?

Is this the most efficient way to retreive an id value
for insert a row then insert the resulting row into
the related tables?

Is there a more efficient/proper way? I would like all
my records to increment by 1 if possible. I'd be very
grateful to read your opinion.

Thank you.



____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs


pgsql-general by date:

Previous
From: "Matt A."
Date:
Subject: Re: Altering built-in functions cast
Next
From: Alban Hertroys
Date:
Subject: Re: Serials jumping