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 1lrrPS-00056d-Oh for pgsql-bugs@arkaria.postgresql.org; Sat, 12 Jun 2021 00:21:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lrrPQ-0002ZU-Sf for pgsql-bugs@arkaria.postgresql.org; Sat, 12 Jun 2021 00:21:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrrPQ-0002ZM-Le for pgsql-bugs@lists.postgresql.org; Sat, 12 Jun 2021 00:21:56 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrrPO-0003n8-Kr for pgsql-bugs@lists.postgresql.org; Sat, 12 Jun 2021 00:21:56 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 15A0E5C00C3; Fri, 11 Jun 2021 20:21:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 11 Jun 2021 20:21:52 -0400 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=fm2; bh=t01xyKn8aKDSPBS+LEy2xsLTZsJ MlXtKw3+k0SJKNFo=; b=HBjOope65CA8QXK+/TdXS4IGDT6tw+b7txHeR6kx+jS sqaAochawktnDBUu6hnU9EC6pPqXB21k76onY8xCnuH//romLUsizpW8Kv42P5yW zwFQW12Q2Ntr9jbSTOK+UvBzC1cT2d47XK4vs5kIZDnWyUB/mvsrLFjjlAovyF+Y d0hMxNHNLJnDsNC3zHKmL4wbSLnoZGVlpqQrcPmyOlpBqyEse/+kmkCAGBBXFIW4 KEtQw+t3XkzHjiuiLGVfnca/IwlHw4yhXBKUdl8G1Fqw9kL5VYumn+fgALYqSizb 0qsYP72IC0qHJBwCiGetgydn+lrdQJFhFWVglxiR0mw== 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=fm3; bh=t01xyK n8aKDSPBS+LEy2xsLTZsJMlXtKw3+k0SJKNFo=; b=XNddbg8hxDEfL6YMv7xbsV /6u0v/dqn/TZG1MqBSFScuajViS94HJuX2ZR2vhDYEOLkzvMLCKfblaAFg9aD7d6 EtMmLvgjQgF/zw30ALUZ95UwXMm2kYTpTZXFvOTOtX8S/MtrZFoPMZ0md5AA1mk5 FOUj7KRbiAtYa4p6klBDk54TT4Ilfnbao04Xm7slKq1B+SRmUug0eKVufHFiJRkn h4CH5MQhCSlF7asvZl6Bqe+wzfkc2hs/qRsHz8Vdu0Z/rugvOAAgcZkh+s5HLM3O /pC7UR4421qwFAkd9zxC0yGT5QmUGfLdB1lBptkMv23E2BUPg+r6LRsm8r4Mf0ow == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeduledgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 11 Jun 2021 20:21:49 -0400 (EDT) Date: Sat, 12 Jun 2021 09:21:47 +0900 From: Michael Paquier To: Tom Lane Cc: Amit Langote , 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 Message-ID: References: <17055-9ba800ec8522668b@postgresql.org> <1828113.1623370641@sss.pgh.pa.us> <1881335.1623423667@sss.pgh.pa.us> <2058966.1623442520@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OBTBOkqWo7XHvPEn" Content-Disposition: inline In-Reply-To: <2058966.1623442520@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --OBTBOkqWo7XHvPEn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 11, 2021 at 04:15:20PM -0400, Tom Lane wrote: > Done now. It was a highly worthwhile exercise, too, because I stumbled > over two *other* bugs in this code while I was at it. >=20 > BTW, I intentionally reworded the DEBUG messages to make sure we could > tell the partitioned case apart from the non-partitioned one. I have two comments about the TAP portion of ab55d74. +$node_subscriber->append_conf('postgresql.conf', "log_min_messages =3D deb= ug1"); +$node_subscriber->reload; Wouldn't it be better to make sure that the change is effective before moving on to the end of the test? +my $logfile =3D slurp_file($node_subscriber->logfile()); +ok( $logfile =3D~ + qr/logical replication did not find row to be updated in replication = target relation "tab_full_pk"/, + 'update target row is missing'); I think that it would be better here to grab the log location before running the queries that will be matched with the logs, then pass down the location to slurp_file(). -- Michael --OBTBOkqWo7XHvPEn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmDD/hsACgkQnvQgOdby QH0zcQ//b06gj65jufAn7jRF486/AFx0SeHpt0VCqve1Bi8/Zu1xQB2qHsYmRej4 rb6o5IJxheapAvjoow4fv/u2QqyXoqy9hU3RAVXYjTrKCNnwar5vUB0dBz5l/tZx lMmkwKy7tcGuDkU99b94/rwrWOfQlKfwZnsWgGcBTSb9Wan2FQYiJl1oZXDcM0n7 epabYnFoJTzzW3QhlKAeyiLbV8GFYnTF038ND8C2pKB+/gU7I0c1sYXA7eygGQMg 5PirBOvFOfm0c98mlUSxPxasz1skdxQFOrq32KlrQ2PwtwBLXC3iMznNC4cshO9I S7sqZRHizK8wHYCZKxb9Eqpb48YO31hTwMlruTTXNQMnpVSMv4CLSSWBGj3KhS8T 4x0R5HweW0Nq/Vp1FGjoQAPrE07VREgYRAP0QgBBxeedv2rFO2Ilx/QAoNM5gFbm uo34BdKcXt6likGdNR5Mhh573yEU//Deybm1MwO2Kb9bb+4c37AwR6OMedZcs8eZ eirGhQ0I6QPPWEAib1f/U40U7BrHr/iB6Ug0uG75Y0DUSSm8Uz2FFgEM4/p8IKhJ j5NTdNYd2dWfWDlC1oKfLEz5Vtnx9gPLl7+C4w/HFaNfvqgQV+XQLNDWhx6fI8vA EVOnLXQeeeoJjmdfvuyhqcQLYZS49mIChlQ81/q+xf6MCzMOnjc= =u/oY -----END PGP SIGNATURE----- --OBTBOkqWo7XHvPEn--