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 1esdng-0001bS-D1 for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Mar 2018 00:16:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1esdne-0007Ik-8J for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Mar 2018 00:16:18 +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 1esdnd-0007Ib-V7 for pgsql-bugs@lists.postgresql.org; Mon, 05 Mar 2018 00:16:18 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1esdnW-0008RD-L0 for pgsql-bugs@lists.postgresql.org; Mon, 05 Mar 2018 00:16:16 +0000 Received: from [192.168.127.1] (port=62874 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1esdnR-0001mw-5k; Mon, 05 Mar 2018 00:16:05 +0000 Received: from [127.0.0.1] (port=33340 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1esdnQ-000Gw9-AV; Mon, 05 Mar 2018 00:16:04 +0000 From: Andrew Gierth To: Michael Paquier Cc: Tom Lane , 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: <20180304235654.GA32165@paquier.xyz> (Michael Paquier's message of "Mon, 5 Mar 2018 08:56:54 +0900") Message-ID: <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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Mon, 05 Mar 2018 00:16:03 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Michael" == Michael Paquier writes: > On Sat, Mar 03, 2018 at 07:55:41PM +0000, Andrew Gierth wrote: >> sequence_options thinks it can put all the sequence parameters >> through makeInteger and have them come out intact. Michael> Yeah, on 32b machines "long" is 4 bytes... And on 64-bit Windows, too. 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. -- Andrew (irc:RhodiumToad)