Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qx89y-00GFGr-ND for pgsql-bugs@arkaria.postgresql.org; Sun, 29 Oct 2023 15:57:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qx89x-008Gr0-5F for pgsql-bugs@arkaria.postgresql.org; Sun, 29 Oct 2023 15:57:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qx89w-008Gqs-TQ for pgsql-bugs@lists.postgresql.org; Sun, 29 Oct 2023 15:57:04 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qx89u-002uUZ-Lq for pgsql-bugs@lists.postgresql.org; Sun, 29 Oct 2023 15:57:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 39TFuugq2141584; Sun, 29 Oct 2023 11:56:56 -0400 From: Tom Lane To: Alexander Korotkov cc: Andrei Lepikhov , Richard Guo , Vik Fearing , zuming.jiang@inf.ethz.ch, pgsql-bugs@lists.postgresql.org, Alexander Korotkov Subject: Re: BUG #18170: Unexpected error: no relation entry for relid 3 In-reply-to: References: <18170-f1d17bf9a0d58b24@postgresql.org> <4ecab120-6be3-4cf6-a2a0-249c73ae91d4@postgresfriends.org> <1189851.1698340331@sss.pgh.pa.us> <011bcae5-7840-42c7-a50c-b406189e2e78@postgrespro.ru> <721542ce-79df-469e-93e9-811fadb5bd0c@postgrespro.ru> <2eb87c2e-7e6f-4002-8df3-8fac3aa6a037@postgrespro.ru> Comments: In-reply-to Alexander Korotkov message dated "Sun, 29 Oct 2023 01:39:40 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2141582.1698595016.1@sss.pgh.pa.us> Date: Sun, 29 Oct 2023 11:56:56 -0400 Message-ID: <2141583.1698595016@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexander Korotkov writes: > I made some beautification of the patch by Andrei. I also removed the > part which changes the target list for estimate_num_groups(). Any > objections to pushing this? It seems moderately likely that this will break as much as it fixes. I've not studied the original patch enough to understand why you need to be playing strange games with tree mutation rules, but I suspect that this is band-aiding over some rather fundamentally bad code. regards, tom lane