From: Tom Lane <tgl@sss.pgh.pa.us>
To: josipa.milic@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14442: serial maxvalue incorrect
Date: Wed, 30 Nov 2016 11:01:15 -0500
Message-ID: <19045.1480521675@sss.pgh.pa.us> (raw)
In-Reply-To: <20161130093430.4377.13791@wrigleys.postgresql.org>
References: <20161130093430.4377.13791@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
josipa.milic@gmail.com writes:
> When table is generated using pgadmin, sequence generated as serial has the
> same maxvalue as bigserial: 9223372036854775807
Yup.
> It should be max value that corresponds to integer: 2147483647
No, that's intentional. If you never run out of serial numbers,
it's not going to matter. If you do run out, you'll get an error
anyway (from trying to stuff a value > 2147483647 into an integer
column). And the sequence limit will be one less thing you'll
have to change on the way to fixing it.
regards, tom lane
--
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: tgl@sss.pgh.pa.us, josipa.milic@gmail.com
Subject: Re: BUG #14442: serial maxvalue incorrect
In-Reply-To: <19045.1480521675@sss.pgh.pa.us>
References: <20161130093430.4377.13791@wrigleys.postgresql.org> <19045.1480521675@sss.pgh.pa.us>
* 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