pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14442: serial maxvalue incorrect
3+ messages / 3 participants
[nested] [flat]
* BUG #14442: serial maxvalue incorrect
@ 2016-11-30 09:34 josipa.milic@gmail.com
2016-11-30 16:01 ` Re: BUG #14442: serial maxvalue incorrect Tom Lane <tgl@sss.pgh.pa.us>
2016-12-01 13:56 ` Re: BUG #14442: serial maxvalue incorrect Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
0 siblings, 2 replies; 3+ messages in thread
From: josipa.milic@gmail.com @ 2016-11-30 09:34 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14442
Logged by: josipa milic
Email address: josipa.milic@gmail.com
PostgreSQL version: 9.5.0
Operating system: windows 7
Description:
When table is generated using pgadmin, sequence generated as serial has the
same maxvalue as bigserial: 9223372036854775807
It should be max value that corresponds to integer: 2147483647
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #14442: serial maxvalue incorrect
2016-11-30 09:34 BUG #14442: serial maxvalue incorrect josipa.milic@gmail.com
@ 2016-11-30 16:01 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2016-11-30 16:01 UTC (permalink / raw)
To: josipa.milic@gmail.com; +Cc: 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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #14442: serial maxvalue incorrect
2016-11-30 09:34 BUG #14442: serial maxvalue incorrect josipa.milic@gmail.com
@ 2016-12-01 13:56 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
1 sibling, 0 replies; 3+ messages in thread
From: Peter Eisentraut @ 2016-12-01 13:56 UTC (permalink / raw)
To: josipa.milic@gmail.com; pgsql-bugs
On 11/30/16 4:34 AM, josipa.milic@gmail.com wrote:
> When table is generated using pgadmin, sequence generated as serial has the
> same maxvalue as bigserial: 9223372036854775807
>
> It should be max value that corresponds to integer: 2147483647
There is a pending proposal to address that:
https://www.postgresql.org/message-id/flat/898deb94-5265-37cf-f199-4f79ef864536@2ndquadrant.com
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-12-01 13:56 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-11-30 09:34 BUG #14442: serial maxvalue incorrect josipa.milic@gmail.com
2016-11-30 16:01 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-12-01 13:56 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
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