Re: BUG #8582: field serial getted incorrect value from automaticaly created its sequence

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8582: field serial getted incorrect value from automaticaly created its sequence
Date: 2013-11-07 18:55:51
Message-ID: 527BE237.6040701@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 11/7/2013 10:41 AM, Tom Lane wrote:
> evgeniy(dot)skomorokhov(at)gmail(dot)com writes:
>> >Automaticaly created sequence takes values ​​from the range [1;
>> >9223372036854775807] but max value of field which will be filled from
>> >sequence - max of type integer (2147483647).
> If you want a bigint column, use "bigserial". Not everybody wants
> to take that space penalty, though.

I think he's suggesting that a sequence generated from a regular serial
probably shouldn't have that 63 bit max_value

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David Johnston 2013-11-07 19:16:51 Re: BUG #8582: field serial getted incorrect value from automaticaly created its sequence
Previous Message Tom Lane 2013-11-07 18:41:18 Re: BUG #8582: field serial getted incorrect value from automaticaly created its sequence