Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cC7K2-0005ty-KA for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Nov 2016 16:01:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cC7K2-0002fP-2O for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Nov 2016 16:01:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cC7K1-0002f9-6D for pgsql-bugs@postgresql.org; Wed, 30 Nov 2016 16:01:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cC7Ju-0007g6-Gc for pgsql-bugs@postgresql.org; Wed, 30 Nov 2016 16:01:24 +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 uAUG1FuJ019046; Wed, 30 Nov 2016 11:01:15 -0500 From: Tom Lane To: josipa.milic@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14442: serial maxvalue incorrect In-reply-to: <20161130093430.4377.13791@wrigleys.postgresql.org> References: <20161130093430.4377.13791@wrigleys.postgresql.org> Comments: In-reply-to josipa.milic@gmail.com message dated "Wed, 30 Nov 2016 09:34:30 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19044.1480521675.1@sss.pgh.pa.us> Date: Wed, 30 Nov 2016 11:01:15 -0500 Message-ID: <19045.1480521675@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) 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 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