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 1gYjyG-0006tr-85 for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Dec 2018 03:53:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gYjxG-00048n-VL for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Dec 2018 03:52:30 +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 1gYjxF-00048f-3Y for pgsql-bugs@lists.postgresql.org; Mon, 17 Dec 2018 03:52:30 +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 1gYjxB-00016X-7V for pgsql-bugs@postgresql.org; Mon, 17 Dec 2018 03:52:28 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 9999120365; Sun, 16 Dec 2018 22:52:23 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 16 Dec 2018 22:52:23 -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=Id8f51XMOzECO5aqvTHLpx42AxL 06CVobUg8S/uq/I0=; b=iqfdJfhCJLR9UcEdS+rNbxtjZjEaS9Gpp3/I+TqFcpn JBNRwaNfGzef9BLikr9q6Q+MZWbGfHnkqnIdLc5DjBiTqHHlZmumRYvW0In06QQz TSnOfbomS7qktT4rT3L8x46XWo7UEnz5sN9k94BqYgJ5pUfbba+H/vO04Wg2Ue5y eLge03dYP/mwmXrPNSEww3vJ+ekQDiDPG0dju5ijk3zDARyEfttiOHPnmXQNY2k1 4x/0tJ8OcA4g2MFDGZgksEQKGxG6GLZIgLA6ZnI7aZoNkQrBnyqrlUFrOau61qc3 2+hKMgKN340GwI/TBo8wa/Xm87va217CQzW6Bm3ciYQ== 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=Id8f51 XMOzECO5aqvTHLpx42AxL06CVobUg8S/uq/I0=; b=TD38kLuKwLUAEIruyZoNSs ZTOu2Y/W4/KhMaa8M4L7dLhWsUmUipe3DBa/7Q3mk0UyjWRvnjrDEesFevjPsDwf J/lpE+4j9ELHFUVNesW0w8HmhRXEvVMAExEhRwk91a8xndxm9AoMa0MPibjCGdLu 0dzF4NPEHBWMryepFioWwCk/S2ICeA7jBvPWmcF/1dTWwaBKYVvDHrCC+eS0/kqz HogAvRNp31pRlm2d+m4fO9PLHkd48bgz35Kq0AtEQjM/xMA6ORVNrmKbxNE858TO x62/cZaJZWkuGPVE6gMiLyihr/qSF9bpSiPM39Em11nHw/BTdTK7lnjefqxrnJHw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudeiuddgtdeiucetufdoteggodetrfdotf 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 EA9D5E474F; Sun, 16 Dec 2018 22:52:20 -0500 (EST) Date: Mon, 17 Dec 2018 12:52:17 +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: <20181217035217.GE31474@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> <20181217020634.GC31474@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sfyO1m2EN8ZOtJL6" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --sfyO1m2EN8ZOtJL6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 17, 2018 at 11:20:14AM +0900, Amit Langote wrote: > On 2018/12/17 11:06, Michael Paquier wrote: >> It seems that the call to relation_close should happen after >> CacheInvalidateRelcache. Damn.. That was the issue and this is actually exactly like what has been fixed in 8082bea2. > What a blunder! Sorry. :( No problem. I have committed a fix after reproducing the failure manually and checking the fix. This should cool down prion now. -- Michael --sfyO1m2EN8ZOtJL6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlwXHXEACgkQnvQgOdby QH3lLA/+NLlJuhLXQ2csKrAz17C4eyMpcvivN26lrscbiGwOLO+qs3QwvYEI4SmK nK1C8cGS8X1C1/6sOcOLVd/VnIZfjRBXPyLvAvGlivnozZrtDv80H63bYDpToB9L MjS0wFzMu0R4XoK1VrzqV2cmRwPpI1iyNcwEEMrlhU6WZx36utDIrjhx3PAXbKg4 bl3wACKBTj3v2dEWcmPxltnZXfR8fAvkgHh2orj39gow+l66redbcK9mFiBS+oVl Ud+VqA93s2M2tsP8NFphFblp2HJ6a5oqBs7i5aGtJ+8BVQAlx9F29chx5+O592PG OS2Rn2+dkFaL/0U9vP1h/AaN3dcxgsioHcZGic1DudDC7yJOVfcA3WJChuKqY823 J0grxOI+et4tjwcQ2W0e7Rvtd7PQRVI5siOYZPQlYQNkQBLm+BhbdBg0gMEFhKXu 19s7vC/rAo9ZiBQvZcJgO5N3WOKGs4A2SdF3jx6s679GHTtOD0QGEGsfEx3NAGf7 O2ISSfjMKoStqHiPCWnECBJ4Eis7EpidUaJnfC68joa0tYfoKW8zGMsEUcFyxpYE HdXvRLU0jaA2Ob3ewp3a0ViYS1jCEhjcEkvMpFrgxOF0AOSrgYjPftzWv4UiBk20 M0TvOBeZqH91OjxV1e6TvVmlElFuoOpp85EGk4YjOLs7c7hzA+4= =Dswi -----END PGP SIGNATURE----- --sfyO1m2EN8ZOtJL6--