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 1lEeau-0003cX-9t for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Feb 2021 20:47:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lEeas-0004Gg-ER for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Feb 2021 20:47:42 +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 1lEeas-0004GZ-7p for pgsql-hackers@lists.postgresql.org; Tue, 23 Feb 2021 20:47:42 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEeaq-0008Rl-70 for pgsql-hackers@lists.postgresql.org; Tue, 23 Feb 2021 20:47:41 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id E0647A64; Tue, 23 Feb 2021 15:47:36 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 23 Feb 2021 15:47:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=aOSQwEiG1fynj+IniyaCYlg6sIPmj8qWd2YYqg9ZAJk=; b=QKeRCemR 7g00sq2dqm1XQ7TwlSTXnZ6UAEG1sn6EX5Uaip5yN94ZHUAwGA9dRn23jd+J8jg5 iEYjzbk83pzzTHpGbRoDo67q+bzu4VlSBNqefU8ubVFeE00z0+GCu2lLu1eOZqC+ JbI3LC5Otb8LwF+qt4txtqDEtw2FzRR3vhCRKNMcxXuhBnqk8ybc03Jvwe40agmG J581Mq8Rh4JrHWaTCzDUqKCBexjpzfUbXbSgvZrMCoi2wCjcRNJzV391BBnUVN9O ZK3hg3EZpM6+T0nW0Hbe7zxrYEY+nr+1o5RxUphw6qPzHobfBmp7414pmDW2yg5f nlJCxBF3A5EgwA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrkeehgddugedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjfgesthekredttderudenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepueffhfejieeuueffgedvudekgeeltdeviedvieeufeei ieevgfetheeufeethedvnecukfhppeduledtrdelhedrudelrddujeejnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegr lhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.177]) by mail.messagingengine.com (Postfix) with ESMTPA id B04E4108005F; Tue, 23 Feb 2021 15:47:35 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 33A232A0F80; Tue, 23 Feb 2021 17:47:33 -0300 (-03) Date: Tue, 23 Feb 2021 17:47:33 -0300 From: Alvaro Herrera To: Julien Rouhaud Cc: Mahendra Singh Thalor , PostgreSQL Hackers Subject: Re: Faulty HEAP_XMAX_LOCK_ONLY & HEAP_KEYS_UPDATED hintbit combination Message-ID: <20210223204733.GA11420@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210204163750.GB22612@nol> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2021-Feb-05, Julien Rouhaud wrote: > Thanks, that's way better, copied in v3. Thank you, pushed. The code changes are only relevant in master, but I did back-patch the README.tuplock to all live branches. > I'm still a bit worried about that description though, as that flag > isn't consistently set for the FOR UPDATE case. Well, to be more > precise it's maybe consistently set when the hint bits are computed, > but in some cases the flag is later cleared, so you won't reliably > find it in the tuple. Is that right? I think compute_new_xmax_infomask would set the bit to infomask2_old_tuple (its last output argument) if it's needed, and so the bit would find its way to infomask2 eventually. Do you have a case where it doesn't achieve that? -- Álvaro Herrera Valdivia, Chile "E pur si muove" (Galileo Galilei)