pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6012: Automatically generated sequence number jumps.
2+ messages / 2 participants
[nested] [flat]

* BUG #6012: Automatically generated sequence number jumps.
@ 2011-05-06 15:36 Jai Kumar Shamra <sharma.jaikumar@gmail.com>
  2011-05-06 19:08 ` Re: BUG #6012: Automatically generated sequence number jumps. Kevin Grittner <Kevin.Grittner@wicourts.gov>
  0 siblings, 1 reply; 2+ messages in thread

From: Jai Kumar Shamra @ 2011-05-06 15:36 UTC (permalink / raw)
  To: pgsql-bugs


The following bug has been logged online:

Bug reference:      6012
Logged by:          Jai Kumar Shamra
Email address:      sharma.jaikumar@gmail.com
PostgreSQL version: 8.4
Operating system:   Windows XP Professional SP2
Description:        Automatically generated sequence number jumps.
Details: 

We are facing problem of automatically sequence number changes in increasing
order, why?



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #6012: Automatically generated sequence number jumps.
  2011-05-06 15:36 BUG #6012: Automatically generated sequence number jumps. Jai Kumar Shamra <sharma.jaikumar@gmail.com>
@ 2011-05-06 19:08 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
  0 siblings, 0 replies; 2+ messages in thread

From: Kevin Grittner @ 2011-05-06 19:08 UTC (permalink / raw)
  To: Jai Kumar Shamra <sharma.jaikumar@gmail.com>; pgsql-bugs

"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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2011-05-06 19:08 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-05-06 15:36 BUG #6012: Automatically generated sequence number jumps. Jai Kumar Shamra <sharma.jaikumar@gmail.com>
2011-05-06 19:08 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>

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