Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VeUWD-0002uF-Ox for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Nov 2013 18:41:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VeUWD-0004cX-0f for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Nov 2013 18:41:25 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VeUWA-0004cO-W6 for pgsql-bugs@postgresql.org; Thu, 07 Nov 2013 18:41:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VeUW7-0001Q4-UK for pgsql-bugs@postgresql.org; Thu, 07 Nov 2013 18:41:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id rA7IfIUk006158; Thu, 7 Nov 2013 13:41:18 -0500 From: Tom Lane To: evgeniy.skomorokhov@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8582: field serial getted incorrect value from automaticaly created its sequence In-reply-to: References: Comments: In-reply-to evgeniy.skomorokhov@gmail.com message dated "Thu, 07 Nov 2013 07:35:54 +0000" Date: Thu, 07 Nov 2013 13:41:18 -0500 Message-ID: <6157.1383849678@sss.pgh.pa.us> X-Pg-Spam-Score: -0.5 (/) 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 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. 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