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 1gYiWH-0002dd-Ex for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Dec 2018 02:20: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 1gYiWG-0007Dt-6A for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Dec 2018 02:20:32 +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 1gYiWF-0007Dh-VS for pgsql-bugs@lists.postgresql.org; Mon, 17 Dec 2018 02:20:32 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gYiWC-0007SX-Ja for pgsql-bugs@postgresql.org; Mon, 17 Dec 2018 02:20:31 +0000 Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id wBH2KKxc010337; Mon, 17 Dec 2018 11:20:20 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id D51456386DF; Mon, 17 Dec 2018 11:20:20 +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 CA09C6386DE; Mon, 17 Dec 2018 11:20:20 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.61]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id C5042400AFB; Mon, 17 Dec 2018 11:20:20 +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> From: Amit Langote Message-ID: Date: Mon, 17 Dec 2018 11:20:14 +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: <20181217020634.GC31474@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 11:06, Michael Paquier wrote: > 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.. What a blunder! Sorry. :( Thanks, Amit