Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VeUkP-0003VO-SQ for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Nov 2013 18:56:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VeUkP-0007iU-2L for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Nov 2013 18:56:05 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VeUkO-0007iO-Dg for pgsql-bugs@postgresql.org; Thu, 07 Nov 2013 18:56:04 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VeUkL-0001i6-NG for pgsql-bugs@postgresql.org; Thu, 07 Nov 2013 18:56:03 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id rA7Ittl22335 for ; Thu, 7 Nov 2013 10:55:55 -0800 Message-ID: <527BE237.6040701@hogranch.com> Date: Thu, 07 Nov 2013 10:55:51 -0800 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #8582: field serial getted incorrect value from automaticaly created its sequence References: <6157.1383849678@sss.pgh.pa.us> In-Reply-To: <6157.1383849678@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 11/7/2013 10:41 AM, Tom Lane wrote: > evgeniy.skomorokhov@gmail.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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs