Re: BUG #14442: serial maxvalue incorrect - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #14442: serial maxvalue incorrect
Date
Msg-id 19045.1480521675@sss.pgh.pa.us
Whole thread Raw
In response to BUG #14442: serial maxvalue incorrect  (josipa.milic@gmail.com)
List pgsql-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

pgsql-bugs by date:

Previous
From: josipa.milic@gmail.com
Date:
Subject: BUG #14442: serial maxvalue incorrect
Next
From: jec@jesc.ch
Date:
Subject: BUG #14443: JDBC Driver > 1208 doesn't work with PGADV server