Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1esivQ-0002Yy-Lg for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Mar 2018 05:44:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1esivP-0001NO-DJ for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Mar 2018 05:44:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1esivP-0001NF-4C for pgsql-bugs@lists.postgresql.org; Mon, 05 Mar 2018 05:44:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1esivL-0006wG-Rr for pgsql-bugs@lists.postgresql.org; Mon, 05 Mar 2018 05:44:37 +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 w255iWTj021017; Mon, 5 Mar 2018 00:44:33 -0500 From: Tom Lane To: Andrew Gierth cc: Michael Paquier , evgeni-klimov@yandex.ru, pgsql-bugs@lists.postgresql.org, Peter Eisentraut Subject: Re: BUG #15096: Unable to CREATE TABLE LIKE with bigint identity column In-reply-to: <87lgf7l6sj.fsf@news-spur.riddles.org.uk> References: <152009601619.21242.262498029671910378@wrigleys.postgresql.org> <31194.1520098424@sss.pgh.pa.us> <87po4lkkaj.fsf@news-spur.riddles.org.uk> <20180304235654.GA32165@paquier.xyz> <87lgf7l6sj.fsf@news-spur.riddles.org.uk> Comments: In-reply-to Andrew Gierth message dated "Mon, 05 Mar 2018 00:16:03 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21015.1520228672.1@sss.pgh.pa.us> Date: Mon, 05 Mar 2018 00:44:32 -0500 Message-ID: <21016.1520228672@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Gierth writes: > "Michael" == Michael Paquier writes: > Michael> Perhaps it would be the occasion to introduce a T_Integer64 > Michael> type for Value which gets stored as a string? And as far as I > Michael> can see defGetInt64 is only used by sequences. > The slightly misnamed T_Float is what's currently used for Value nodes > which contain numeric values as strings. So there'd be no point in a new > type tag if you're still going to store the value as a string. Going forward, maybe we should change the T_Integer case to either int64 or int32, so that it's not got a platform-dependent range. That's not a workable solution for back-patching into v10, though (and neither is T_Integer64, really). regards, tom lane