Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrnYs-0005a0-EY for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Jun 2021 20:15:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lrnYr-00049J-Cf for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Jun 2021 20:15:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrnYr-00049A-5w for pgsql-bugs@lists.postgresql.org; Fri, 11 Jun 2021 20:15:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrnYp-0004bw-7z for pgsql-bugs@lists.postgresql.org; Fri, 11 Jun 2021 20:15:24 +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 15BKFKU62058967; Fri, 11 Jun 2021 16:15:20 -0400 From: Tom Lane To: Amit Langote cc: Michael Paquier , sbernikov@gmail.com, PostgreSQL mailing lists Subject: Re: BUG #17055: Logical replication worker crashes when applying update of row that dose not exist in target partiti In-reply-to: <1881335.1623423667@sss.pgh.pa.us> References: <17055-9ba800ec8522668b@postgresql.org> <1828113.1623370641@sss.pgh.pa.us> <1881335.1623423667@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 11 Jun 2021 11:01:07 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2058965.1623442520.1@sss.pgh.pa.us> Date: Fri, 11 Jun 2021 16:15:20 -0400 Message-ID: <2058966.1623442520@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > I see from the coverage report that *none* of the did-not-find-tuple > code paths in worker.c are exercised. This does not seem OK. I agree > that probably the only way to have a test case is to kick up the debug > level to DEBUG1 and grep the log to confirm that the message is there. > IIRC, we already have infrastructure for grepping the log, so this > shouldn't be that hard. Will work on it today. Done now. It was a highly worthwhile exercise, too, because I stumbled over two *other* bugs in this code while I was at it. BTW, I intentionally reworded the DEBUG messages to make sure we could tell the partitioned case apart from the non-partitioned one. regards, tom lane