From: kashi@fhpg.net
To: pgsql-bugs@postgresql.org
Subject: BUG #9366: Default MAXVALUE is incorrect for sequence object of serial type
Date: Thu, 27 Feb 2014 03:45:10 +0000
Message-ID: <20140227034510.26578.68200@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: kashi@fhpg.net
Subject: Re: BUG #9366: Default MAXVALUE is incorrect for sequence object of serial type
In-Reply-To: <20140227034510.26578.68200@wrigleys.postgresql.org>
References: <20140227034510.26578.68200@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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