Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WIunU-0007bV-Os for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Feb 2014 06:50:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WIunU-0002CV-96 for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Feb 2014 06:50:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WIrvD-00045z-TU for pgsql-bugs@postgresql.org; Thu, 27 Feb 2014 03:46:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WIrv9-0003yo-Q3 for pgsql-bugs@postgresql.org; Thu, 27 Feb 2014 03:46:06 +0000 MIME-Version: 1.0 Subject: BUG #9366: Default MAXVALUE is incorrect for sequence object of serial type To: pgsql-bugs@postgresql.org From: kashi@fhpg.net Date: Thu, 27 Feb 2014 03:45:10 +0000 Message-ID: <20140227034510.26578.68200@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following bug has been logged on the website: Bug reference: 9366 Logged by: KASHI, Yukihito Email address: kashi@fhpg.net PostgreSQL version: 9.1.6 Operating system: Windows7 / Linux version 2.6.18 Description: When I create the new table as serial type column , I found a strange condition on sequence parameter. It could be specified as integer, but MAXVALUE of sequence is set as Bigint. ex) CREATE TABLE test_int (seq_int serial, test_int integer); At that case, MAXVALUE of test_int_seq_int_seq is "9223372036854775807". As the result, if the current value is 2147483647, next insert operation could be failed as "ERROR: integer out of range". I briefly check the release note, but I couldn't find any changes related with serial between 9.1.7 - 9.1.12. Thank you. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs