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 1l7iYi-00051X-7J for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Feb 2021 17:36:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l7iYg-0000Xf-SX for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Feb 2021 17:36:46 +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 1l7iYf-0000XY-Qj for pgsql-hackers@lists.postgresql.org; Thu, 04 Feb 2021 17:36:46 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7iYd-0006Oi-Gs for pgsql-hackers@lists.postgresql.org; Thu, 04 Feb 2021 17:36:44 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 7BEFBF42; Thu, 4 Feb 2021 12:36:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 04 Feb 2021 12:36:41 -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=2wp3EzIRlHHyNG+U9naQIU/pWQMQdeZO/UhK9AwsOFE=; b=huG+N7px 3J+CrZswcMIpCx15SPVcOBYPKqowXvzi25rGdE14zFDwQF91RRYOAnMqBaS3H4Jo 8hqDHfT7yDIjAg32p+bAx/TtWX4cFKzMqKLIunSzK8xezVE+aXhzGsHmb1jFM+Cj LOXyUXzeXb+7cnTkQFTWf0L2YaZDrlk76BKweNSNaGS6parDrOM9ekK3g+jtN5AV LH4mzpP1hn+fO2Fi4ZNLyKWWg8ugwfMGqRgFZwLaADGgmfTsTJ7RjF9rs5n4kYBV OXkfAPc7zgRdts0Ms7rVOdcLzKvYOVmmdCc789He/zd6j9KguqIDJSyZacb0aprs qmNOixFfyAm7nA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrgeeggdelhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtugfgjggfsehtkeertddtredunecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeeufffhjeeiueeuffegvddukeegledtveeivdeiueefieei vefgteehueefteehvdenucfkphepudeltddrleehrdduledrudejjeenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghl vhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.177]) by mail.messagingengine.com (Postfix) with ESMTPA id 6B3FD24005E; Thu, 4 Feb 2021 12:36:40 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 036852A0E0B; Thu, 4 Feb 2021 14:36:38 -0300 (-03) Date: Thu, 4 Feb 2021 14:36:37 -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: <20210204173637.GA30985@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. 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. Hmm, that sounds bogus. I think the resetting of the other bits should be undone afterwards, but I'm not sure that we correctly set KEYS_UPDATED again after the TOAST business. (What stuff does, from memory, is to make the tuple look as if it is fully updated, which is necessary during the TOAST handling; if the bits are not correctly set transiently, that's okay. But it needs reinstated again later, once the TOAST stuff is finished). -- Álvaro Herrera 39°49'30"S 73°17'W "El número de instalaciones de UNIX se ha elevado a 10, y se espera que este número aumente" (UPM, 1972)