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 1esjNW-0004jb-6u for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Mar 2018 06:13:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1esjNU-0001Ae-SP for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Mar 2018 06:13:40 +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.89) (envelope-from ) id 1esjNU-0001AV-MM for pgsql-bugs@lists.postgresql.org; Mon, 05 Mar 2018 06:13:40 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1esjNR-0007tN-ED for pgsql-bugs@lists.postgresql.org; Mon, 05 Mar 2018 06:13:40 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id C2F5DAD2; Mon, 5 Mar 2018 01:13:35 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Mon, 05 Mar 2018 01:13:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=xzLkdpvjzz1Zfgob3nAIJ+hoOWiNMiNBOkwYjIffeXQ=; b=EP1EEuNE y+9WIrMXcfTy4ZZcSz72geP8ZBKpDikTNiQVQMcZfnY8zrVZbM/oKICy3MRiBuNb LQ8l4PA25zKpVNM5b0LE1O2v75mMOK1EHWfu63LbREDRKaqE07rHWLQmxkjCoezZ XEi23DL9fbB5WWz7js6LuE/3Ana/XmP7yVJ/cEYjYCPhcARuIsPWla93teDiFrH8 YxsGuxBG9Ki4nKPb3qVW3dtks9LCaUKpEWzRqilJ/nUCtiZZXdDduDklg+LMTIRd PRPky+kI8Kp+4wmKT12ys2xg2rZlY9c/LfLhMDs6GCQPzmAK+1STZiatp2gXq1gO YKkSFBXmb1aZtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=xzLkdpvjzz1Zfgob3nAIJ+hoOWiNM iNBOkwYjIffeXQ=; b=OCmd6bRXEJlr+DjW/71GOSnQ5/ednKnAt8igN+fyWX6k+ JwqFEBaXiYvxYqkVZEfZ+DnDx5bF7vtFZJID72yBZTNZAMy4HQlp3UrbSAP+0d21 Nto0LEBOhqjbYhLjgT1dH49rTulnvnwP65od2u1keMf92qYv+9UOs+R4chkQ9LdH KIU8ieLxgYHkGD1EqtlskGJugSR7zgpvVojviVdOlolryYuMVRtNSU8YofRpvnC0 nk6O4XpnOi9IcddiZ79/g9sri4TLMiswTTaRYCAWwAhkWWcx1Bjk97zj6ybolyfV JKQWwfetLGGhzSw73b2CdVzCB/q0VF0PcKj9TtvQg== X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 9A68B7E3C7; Mon, 5 Mar 2018 01:13:33 -0500 (EST) Date: Mon, 5 Mar 2018 15:13:25 +0900 From: Michael Paquier To: Tom Lane Cc: Andrew Gierth , evgeni-klimov@yandex.ru, pgsql-bugs@lists.postgresql.org, Peter Eisentraut Subject: Re: BUG #15096: Unable to CREATE TABLE LIKE with bigint identity column Message-ID: <20180305061325.GF2266@paquier.xyz> 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> <21016.1520228672@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="y9PDtDHaFrXNoMPU" Content-Disposition: inline In-Reply-To: <21016.1520228672@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --y9PDtDHaFrXNoMPU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 05, 2018 at 12:44:32AM -0500, Tom Lane wrote: > Andrew Gierth writes: >> "Michael" =3D=3D 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. >=20 >> 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. >=20 > 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. Serial columns using bigint as type would need int64 anyway, no? Why int32? > That's not a workable solution for back-patching into v10, though (and > neither is T_Integer64, really). Sure. For v10, using just T_Float should be doable at quick glance. I have not checked though. -- Michael --y9PDtDHaFrXNoMPU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlqc4AUACgkQnvQgOdby QH37wQ//Ue0ooKJnMoPuTlKyxtr9UVjS14nd4vzhI87Jg80Hgr0+y2XizTKo8Kf+ lLE4MIvAy6a1+dGoyVi7dInlunnKsacoAo8tSymy37RbVq9K5luS8OIQ1+XVVT10 oxrPhfSNHmWxupv3mz4bpyOxdI2j7KUyB8uRiQmTmDVhLBMP8Jc2/1o7Hdwm/diu 7X/tPAUGWQaZ4q2/fAa+GYyl/bLcDh/wJ2PGeR8gKcsCCDNKsukNudWOBwMzO8p4 +L2zzKqVqLMjHf8oHfMn1Edwj8u38GP7X9j/JG9/dGzww/7Vi5cnWQSPyeVOdPA9 rkWQYzLEJuAZDtbiSUOxlODokXdj8WD4/2O906F6V3FCniLfm9Rb/C2pTz/sMf5w LMymUKJ2j9XU+zxo3eN8C4OPGWN9MqDLxayupjeuqrZ0SpQD5FYYqtAR2dCcxIPd A6oW/3atluKK5qkSafbJeXV7cwPk/z+Ek+Qtufx6K9vj7MeAjShcknpOoTJnnwnj PLGTfLuLySV4A0hFFw6G4g00W/ShDBw/ICnX6GJf2iLWIS8+0nh3aLG3ut/qqZzj 110eQBQ3XkcsbTW90tm9HrVbD98LRDU9xyJm05Ab0iv1XfD29ofCIsMyOBVeH+sJ YO7gV8T9o+UhHd/6xGLRoA1m23p7AmTNBj72oY6mZJ1qJnShyFs= =Ab4S -----END PGP SIGNATURE----- --y9PDtDHaFrXNoMPU--