Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYi44-0001BT-JZ for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Dec 2018 01:51:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gYi43-0003R1-1L for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Dec 2018 01:51:23 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYi41-0003PN-HH for pgsql-bugs@lists.postgresql.org; Mon, 17 Dec 2018 01:51:22 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYi3x-0006oO-Hf for pgsql-bugs@postgresql.org; Mon, 17 Dec 2018 01:51:21 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BE61921E8D; Sun, 16 Dec 2018 20:51:15 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 16 Dec 2018 20:51:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=8qzhwUgBsmXNNJEUErdl0Uw1EAq rNxgBHkC3mBYfFCE=; b=f6hE4gT+fuMlaeVMbRcuR+Do5/pH1qTdru1hK2bkAu7 z/OUhrdJ42BOCy51lcPJvyoUZsS2pV4NKYd0jGYhokOQrPlBoLXUGjy0o+9YUM9d Grpm3QMgooiNYo+jRMmqwrtoN8+vncBGbLywE8Vp5rM5h30cWoKp2/qlnmy+u9JN byuya1qaRVQqV099GhCP8WK2/bqTUcjYxfjiVtmkNyE6M+rURAGlFINgslMopz1S N6dQn83kvIcsxS3QUWFz7+PCIzmMB6UVIM1vRAME+8lry6HI+ZWAEB2AvCD31wrs w94EKi11GCpj3BfXkGoU2Pli1R6qREOdewXY1HP4dbw== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=8qzhwU gBsmXNNJEUErdl0Uw1EAqrNxgBHkC3mBYfFCE=; b=aDLWOzW+G5KG+X8LbFB3fi 7/5Zdvc+ruq0NTr8P9obJu5hZfc1f/COi90xfsXYLGL5trgIxRxSn1FZsUsIkzH0 PCU+/FSBV8mIyfm+2rnbGzxKMG6KPCsl5GRVgwq4ZAHpHXX9Y82K84NHdC5HJDHr YhvqDHyBTtYEaht/L3MuWNBui/0yNKro2gzt0xFAJ/Tdmg+hs3g+taWZFKuaq+lm stA9NQIPkruCgh/1fBIE1AKjGXlm7AQ89E750K7bOqD3Gt25bjpU/oelvfWTg/kH 7K7FTMiLyVejmCAfzDMrPRDT/UK2iYCdnlRqndrUrVoKjjc+kypTFfCVfqPkNkwg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudeitddgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdejtd dmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgt hhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqne cukfhppeeiuddrvdduhedrudefjedrudeivdenucfrrghrrghmpehmrghilhhfrhhomhep mhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id B2D60E409D; Sun, 16 Dec 2018 20:51:13 -0500 (EST) Date: Mon, 17 Dec 2018 10:51:10 +0900 From: Michael Paquier To: Amit Langote Cc: Stuart , pgsql-bugs@postgresql.org Subject: Re: Errors creating partitioned tables from existing using (LIKE ) after renaming table constraints Message-ID: <20181217015110.GA31474@paquier.xyz> References: <2047094.V130LYfLq4@station53.ousa.org> <977c72a1-8d56-b77c-37de-808627033654@lab.ntt.co.jp> <20181214002038.GC2921@paquier.xyz> <20181216072703.GK5012@paquier.xyz> <3dcf4d65-313c-b629-86f5-8e06ec42d92f@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <3dcf4d65-313c-b629-86f5-8e06ec42d92f@lab.ntt.co.jp> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 17, 2018 at 10:41:07AM +0900, Amit Langote wrote: > On 2018/12/16 16:27, Michael Paquier wrote: >> I'll try to get that committed tomorrow and back-patched appropriately. >=20 > Thank you for adding the comment and committing. :) Done just a few moments ago. I have also added a test with a primary key rename which does not matter as long as LIKE INCLUDE INDEXES is involved but that felt safer in the long-run. -- Michael --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlwXAQ4ACgkQnvQgOdby QH0Y7w/+MNv7EYd37Vp6YR9CAK2NZo3hq4/IG6BEZb2MBDKhZ4iypH7pVxussZjA OG3l6uOdDod1NdNvO20Vj+hMr47fC6TlTnAv09BANAMzx8x0Jo5Rcn/egyX5KfIE a7Xq5GUgWqYo8cxLF7zYfNUopEzZm5xC0fp/TCXT5QHt8MbsrsfaaGHLqCos7bx6 niaWfZWaZE3estv9S2C+JGD2hsjQEKQrXiZNIa9u6VY3psIGVPPgq8kM+sPxfEJ9 hzyd+llCJqkrW3rcFlV9YWRJXF9eKNsI3WGizXvcPPq3kL59oAkdZibwa1mjq2l9 X3m6WelUFxojzZrs8PBUP4np+97x9DQwX/Q//4Cjii6BripQCPrTPsnEKKuk2fj4 gJ2O2pD5hVWixOUHu/XE9EXSxazjcoSzyMOUvWHTvgPk1sZAkjuljwlKNLoKYtKo ESSOQ+ec5k5b6hUUoCeeMGFCtSTXCTjGl5WraviB7qFDpB2RphKnQbPFbP6y+oEH VNfnnDIezZPl/vn0rhNNpUjz6aWtixl6UWr3khC1RdQvzyiVw4rHJHLsBRPQwCDs MJRyW1MKaNFMaohitMXjihSQ/n5HxwBGPNNfrmybLGi/hTJ0KoSBpiXVwcak6rOm gEv7X3cftNt8ZeIjzqDOP+B4m4LSjXPqP1XFQavckqlmMmRTVHM= =Wpfw -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi--