dbTalk Databases Forums  

Re: [BUGS] BUG #2380: Sequence problem

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] BUG #2380: Sequence problem in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Fuhr
 
Posts: n/a

Default Re: [BUGS] BUG #2380: Sequence problem - 04-06-2006 , 09:43 PM






On Thu, Apr 06, 2006 at 10:04:03AM +0000, Alex Fomin wrote:
Quote:
While using the following function:
---
nextval(sequence_name) returns currval(sequence_name) -1
---
while +1 is expected. It happens only sometimes, no dependency can be found.
Could you provide a complete test case? That is, all SQL statements
that somebody could execute in an empty database to reproduce the
problem. It doesn't have to be 100% reproducible as long as it
does exhibit the behavior every once in a while (an indication of
how often or under what circumstances, if known, would be helpful).

Is it possible that another session is altering the sequence to
start with a lower value? Have you perchance set the sequence's
CACHE setting to a value other than 1 (one)? What's the output of
"SELECT * FROM sequence_name"? Are you making queries from more
than one session? Are you using connection pooling?

--
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.