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 1gYk0u-000730-At for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Dec 2018 03:56:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gYk0s-0007XY-VX for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Dec 2018 03:56:14 +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 1gYk0s-0007XR-PR for pgsql-bugs@lists.postgresql.org; Mon, 17 Dec 2018 03:56:14 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gYk0p-0001D2-RM for pgsql-bugs@postgresql.org; Mon, 17 Dec 2018 03:56:14 +0000 Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id wBH3u3YE020153; Mon, 17 Dec 2018 12:56:03 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 30BFE63874A; Mon, 17 Dec 2018 12:56:03 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 22EAC638746; Mon, 17 Dec 2018 12:56:03 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.61]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id 184284007FE; Mon, 17 Dec 2018 12:56:03 +0900 (JST) Subject: Re: Errors creating partitioned tables from existing using (LIKE ) after renaming table constraints 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> <20181217035217.GE31474@paquier.xyz> From: Amit Langote Message-ID: Date: Mon, 17 Dec 2018 12:55:56 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <20181217035217.GE31474@paquier.xyz> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CC-Mail-RelayStamp: 1 To: Michael Paquier Cc: Stuart , pgsql-bugs@postgresql.org X-TM-AS-MML: disable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018/12/17 12:52, Michael Paquier wrote: > 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. Thank you! Regards, Amit