Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VzCFg-0002gQ-Ue for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Jan 2014 21:25:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VzCFg-0006gK-Ab for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Jan 2014 21:25:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VzCFf-0006gD-D5 for pgsql-bugs@postgresql.org; Fri, 03 Jan 2014 21:25:55 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VzCFc-0006a4-4t for pgsql-bugs@postgresql.org; Fri, 03 Jan 2014 21:25:55 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VzCFZ-0004Ek-Dk for pgsql-bugs@postgresql.org; Fri, 03 Jan 2014 13:25:49 -0800 Date: Fri, 3 Jan 2014 13:25:49 -0800 (PST) From: David Johnston To: pgsql-bugs@postgresql.org Message-ID: <1388784349415-5785272.post@n5.nabble.com> In-Reply-To: References: Subject: Re: BUG #8718: serial datatype creates a sequence with bigserial limits MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.8 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org richcocoa wrote > The following bug has been logged on the website: > > Bug reference: 8718 > Logged by: Richard Savio > Email address: > richcocoa@ > PostgreSQL version: 9.3.2 > Operating system: Arch Linux 3.12.16 Linux kernel > Description: > > If you create a column with serial data type, it is created as an INTEGER > field but the sequence used to auto-increment the field has a limit only > suitable for BIGINT, so it may result in out of range errors. Yes, it does. This is by design. You can either get a "sequence out of range" error or an "integer overflow error" if you run against the limit. At least this way you can alter the type to be a bigint without having to worry about messing with the sequence. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-8718-serial-datatype-creates-a-sequence-with-bigserial-limits-tp5785224p5785272.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs