pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Jai Kumar Shamra <sharma.jaikumar@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #6012: Automatically generated sequence number jumps.
Date: Fri, 06 May 2011 14:08:14 -0500
Message-ID: <4DC400CE020000250003D3BF@gw.wicourts.gov> (raw)
In-Reply-To: <201105061536.p46FaluC051166@wwwmaster.postgresql.org>
References: <201105061536.p46FaluC051166@wwwmaster.postgresql.org>

"Jai Kumar Shamra" <sharma.jaikumar@gmail.com> wrote:
 
> Description:        Automatically generated sequence number jumps.
 
> We are facing problem of automatically sequence number changes in
> increasing order, why?
 
Probably transactions rolled back or someone used the setval
function.  From the manual:
 
http://www.postgresql.org/docs/8.4/interactive/functions-sequence.html
 
| Important: To avoid blocking concurrent transactions that obtain
| numbers from the same sequence, a nextval operation is never
| rolled back; that is, once a value has been fetched it is
| considered used, even if the transaction that did the nextval
| later aborts. This means that aborted transactions might leave
| unused "holes" in the sequence of assigned values. setval
| operations are never rolled back, either.
 
Of course, you haven't given us a lot of detail from which to draw
conclusions.  If the above doesn't fit with what you're seeing,
please read this and post again:
 
http://wiki.postgresql.org/wiki/Guide_to_reporting_problems
 
-Kevin



view thread (2+ messages)

Message-ID: <4DC400CE020000250003D3BF@gw.wicourts.gov>
Permalink:  ../4DC400CE020000250003D3BF@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4DC400CE020000250003D3BF@gw.wicourts.gov

 · 

reply

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-bugs@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, sharma.jaikumar@gmail.com
  Subject: Re: BUG #6012: Automatically generated sequence number jumps.
  In-Reply-To: <4DC400CE020000250003D3BF@gw.wicourts.gov>
  References: <201105061536.p46FaluC051166@wwwmaster.postgresql.org> <4DC400CE020000250003D3BF@gw.wicourts.gov>

* 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