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 1nIaYS-0006Gx-QF for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Feb 2022 18:22:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nIaYR-0008TW-Mn for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Feb 2022 18:21:59 +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 1nIaYQ-0008TN-Ow for pgsql-hackers@lists.postgresql.org; Fri, 11 Feb 2022 18:21:59 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIaYI-00016d-Ur for pgsql-hackers@lists.postgresql.org; Fri, 11 Feb 2022 18:21:58 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8F9605C00F0; Fri, 11 Feb 2022 13:21:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 11 Feb 2022 13:21:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=iDH8Phu0Vh0/EYhRV+P9k2JxjZGzSiX9+BNPE274gJg=; b=DZVtdmuT MCR7chpIw0zOwT4ArvGbnNyAzTMVJUccNgtr91y9uJ9as+1CWjp6HbDydTp2EJvj 1hK5XvI8OsZLP8mB7pJ6GMzNis6ll0DTD29GghTox3AFjEmApeX12XCukAtLhkJm pwvjIG4GP5UApnGbI0qaN9e2wlYNQvrhWO0cngeJlpGbMITHKa1ChEtEM3qONPh1 Wf5SDB9eR75Ewpw9ErCwi7vTCbiB/5xuyl5iUuaAYkHPW+bRihRSsZRQGv9tI29K 4lQsDkPUEOm9Zn40Ur4LodFmvsjz0mw50mQelFI3bH44lDdbMpnByU4BF8cl3tok wpUWJlOfzvliHw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrieefgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeelgedvieehgeegledvtefghfefjeevieeitddvhfeihfej kedvgeetfefgvddtvdenucffohhmrghinheptghirhhruhhsqdgtihdrtghomhdpvghnth gvrhhprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 11 Feb 2022 13:21:47 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 9330B2A0984; Fri, 11 Feb 2022 15:21:43 -0300 (-03) Date: Fri, 11 Feb 2022 15:21:43 -0300 From: Alvaro Herrera To: Justin Pryzby Cc: pgsql-hackers@lists.postgresql.org, Simon Riggs , Tomas Vondra , Zhihong Yu , Daniel Westermann , Amit Langote , Japin Li , Erik Rijkers , Jaime Casanova Subject: Re: support for MERGE Message-ID: <202202111821.w3gqblvfp4pr@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220128231948.GI23027@telsasoft.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Jan-28, Justin Pryzby wrote: > Have you looked at code coverage ? I have an experimental patch to add that to > cirrus, and ran it with this patch; visible here: > https://cirrus-ci.com/task/6362512059793408 Ah, thanks, this is useful. I think it is showing that the new code is generally well covered, but there are some exceptions, particularly ExecMergeMatched in some concurrent cases (TM_Deleted and TM_SelfModified after table_tuple_lock -- those code pages have user-facing errors but are not covered by any tests.) How does this work? I notice it is reporting for src/bin/pg_upgrade/relfilenode.c, but that file is not changed by this patch. -- Álvaro Herrera Valdivia, Chile — https://www.EnterpriseDB.com/