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 1gYiIv-0001z0-5n for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Dec 2018 02:06:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gYiIt-00068u-Ey for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Dec 2018 02:06:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYiIt-00067N-59 for pgsql-bugs@lists.postgresql.org; Mon, 17 Dec 2018 02:06:43 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYiIq-00078j-GY for pgsql-bugs@postgresql.org; Mon, 17 Dec 2018 02:06:42 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BA82220B71; Sun, 16 Dec 2018 21:06:39 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 16 Dec 2018 21:06:39 -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=iIM8vCy+lv6A0TmlTs22/vPW24u 8/fLPa0FFmH9QPLg=; b=BFfzCnXTTv1EfReFWpzi+Zr74MVi6Xw6mqQj2iDeCPe Sydbgl7APqbmewcCnqORy4jAn094X5DIZAJBJXuZTUjGQGqRi6KjOvMvqq1Qq73m 109Ysx/mx6T4N9+4/umrvVk0jJlbpkls/bk7H/Bt0OIeR6ek8mC2HEjc7epQvJPu HZHy11l2IjkK5VOqzPWMYak79RksFWmqZA3Yu6WP3YfEWWywL9cOhxWDYqfdRLE0 nv4uN3WlHw001fgUu8etFhdaaxKVQdMfQnn6Th6ODb9vF3PI4ytH1afwAVaoV+eG l0Nnp3E4UTZWYdOF+NDK6uGHBhRlRbnO/uLQbiu890A== 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=iIM8vC y+lv6A0TmlTs22/vPW24u8/fLPa0FFmH9QPLg=; b=REhC1/hUXdAQfzCDBQYqiv ynGF276Px680e1jUvCY3KW5hS5tD1P51MBEvH98F11kwwqkYP34n/EsqQBHCndVn fZNtkPdY2hMj7bRcplKFaH+NJlH98PWxXGlScDTWOYTOtGo+I2XSO2yUlNH6JlvD aT1ORheyiYp+KyVROSGDnM3H3mzeClfyK7K3ttYqq37xwrqR1JZ0EYgFt0TlLDVf j+NjezrPgG3rVifO/GSZwZluoz0VM7Ew0Pskm0gQ/MeFK3v3//C0BGcMt50WFJ46 vp6GcJ8Twwt2Zn8WvXhTOPcHHfuokTk/d1hfb1jneP1Pdlj3PiFnApyzy72rsauw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudeitddgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdefhe dmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgt hhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqne cuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkphepiedurddvudehrddu feejrdduiedvnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquh hivghrrdighiiinecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 5914310085; Sun, 16 Dec 2018 21:06:37 -0500 (EST) Date: Mon, 17 Dec 2018 11:06:34 +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: <20181217020634.GC31474@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> <20181217015110.GA31474@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eRtJSFbw+EEWtPj3" Content-Disposition: inline In-Reply-To: <20181217015110.GA31474@paquier.xyz> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --eRtJSFbw+EEWtPj3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 17, 2018 at 10:51:10AM +0900, Michael Paquier wrote: > 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. Buildfarm member prion is complaining on that: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=prion&dt=2018-12-17%2001%3A46%3A36 This uses -DRELCACHE_FORCE_RELEASE -DCATCACHE_FORCE_RELEASE. It seems that the call to relation_close should happen after CacheInvalidateRelcache. Damn.. -- Michael --eRtJSFbw+EEWtPj3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlwXBKoACgkQnvQgOdby QH2hdxAAqF0kHZ/LRUSQ9H9wFL9mzJM7abzKgjvwr37cCFwz1WxDzb83STcIGytA 1p9d7ub8VMDRoOhrbrg7znI5hOduILdsDmH9ps+Vu+7on6m9LvPXdfrjmJ9edYqk NzQHYp5ibBbjVwmfdLG9Qi7+dXgZGo10VNUiqVrebNAB7Ay5BjRPH9EtZBkeuG0Z YRfYW3BONy9qi2MeJrd0TjvRDLRbRXMQFiIgO9U7zNPA+9F4f3qCJ1/AA5jrUTaP XyfHqSkh9YINftCjehT4pg3wBwhyplptqQpBinnOCAx6VD+o6MYM8gjrazjPqO/P Z+ymWl8He2xYxDEoLO9K5ddJ5DaGsgXHSMQ9laoHH5ptl7RbG/R2Ad7hkO85r/SG IaF7wGGA0HpPyZ3tmI+EJSkcg0/KOWBNBDIUQcSPz+gZXt1rFE1OyyQGecqkoK1D NFJm3HXAj/2Jj9d9k07toPKOp5T6b3nVurbx4YP4nqROFMgiyy8Tpa3mkZIJW1XT zXujr0y1B8xPlIzkv37bqS6ljp4rEMqZvHlLhsvNTVS+H9jEDKL78Epdyh2najTk VNHcZqrM18cI07grtOQalKuyfCS0KMIIn61Blf3tBnWwBQzSlmblz3/czH/9N6FY Tb6AXmJs56buNgDPpE4Jb3D43gGLgiwxjndKcwKMHl9ONj1iL6o= =dvP0 -----END PGP SIGNATURE----- --eRtJSFbw+EEWtPj3--