Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 00CB41C0B198 for ; Fri, 20 Jul 2012 11:09:05 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SsDtA-0002WX-1A for pgsql-bugs@postgresql.org; Fri, 20 Jul 2012 14:09:04 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q6KE8n1I016525; Fri, 20 Jul 2012 10:08:50 -0400 (EDT) From: Tom Lane To: SINGHAL Harsh cc: pgsql-bugs@postgresql.org Subject: Re: Sequence id NOT incremented as expected In-reply-to: <50091474.6030908@cy-play.com> References: <50091474.6030908@cy-play.com> Comments: In-reply-to SINGHAL Harsh message dated "Fri, 20 Jul 2012 10:19:00 +0200" Date: Fri, 20 Jul 2012 10:08:49 -0400 Message-ID: <16524.1342793329@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/176 X-Sequence-Number: 33652 SINGHAL Harsh writes: > * In an increasing sequence whose max value is set to > 9223372036854775807 and cycle option is activated, as shown above, > from 2147483647 to 9223372036854775807 it is displaying error > "ERREUR: entier en dehors des limites" and after that it resets it > to 1 which is normal for any sequence whose cycle option is activated. You didn't show us any context here, but this sounds like you're trying to store the sequence's result into a integer (not bigint) column. If so, that's not a bug, it's just pilot error. regards, tom lane