Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHEGG-001Yi6-7e for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Dec 2023 02:30:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rHEGE-0077Xe-HH for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Dec 2023 02:30:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHEGE-0077XV-7Q for pgsql-hackers@lists.postgresql.org; Sun, 24 Dec 2023 02:30:38 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHEG7-00Db3i-N4 for pgsql-hackers@postgresql.org; Sun, 24 Dec 2023 02:30:37 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 92A6632002E8; Sat, 23 Dec 2023 21:30:29 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 23 Dec 2023 21:30:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1703385029; x=1703471429; bh=Vg9n8w5BjX VG8waRe86tWrwwVv8QRDqdl1mVtVniWxs=; b=q/hhOyJDRS50NRyPa6GwbNtiSZ lSfHXwD5rpaOaSWk2Kuilis61UYHu1MF1junv/rhD6ImXxZQNTVDkVLFjSxLCw7S 8y3YuBh6pficKqlS+R3xth6/4Y4qmjKcGg6Fm5ilv20JognxOQ88sggprMYRM/1l Mzm6y/L/S7E8mZuBnN6+LM6KsQN29H8bGamEfdRsHPbkf+rOWr62HiITBdkuiW3x +S06yechd4djzQSW/XgfCIaU4S2kvbndMB2SruD6C1/zKmAUBExttPAgsp9YjrfD OnatBGEOPrxQiTSdv4kmhTVwylVAqehHq2loFImA4M/QB922qVa4Oti1ePWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1703385029; x=1703471429; bh=Vg9n8w5BjXVG8waRe86tWrwwVv8Q RDqdl1mVtVniWxs=; b=ntJ6MXFlEVh8DfrflG28hk9S02y0IMGCjEAzIGfK1rky 0nTRBNoY3G9ASzM/T1goKCQg+FaoyJ6x4DBUNCbMuO8U2QggjBOo5Qx+XWpoSFnE UAE4dDfZx5o+35wtZpgWcQqrDc5Ke1xfjT1jFz61oRhw/br2Kh4IdI1D9bB8wRfE NTAymuddt3NOkZKk52njjfc2eDh+6S6LbnxyQCX3g9o74kBqdlu6VyuO501tNTEr c+QIN2a2zPnAM6TziPLBVfU2u/JMDI1EHfqBx5twha+ntBrqfIHdptTN5UXpMk33 Nw4QKddZHfrOyrSqfvD2EyLt+iiQ03oIiVy6DiZyOg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddvtddggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 23 Dec 2023 21:30:26 -0500 (EST) Date: Sun, 24 Dec 2023 11:30:21 +0900 From: Michael Paquier To: Robert Haas Cc: "pgsql-hackers@postgresql.org" Subject: Re: pgsql: Prevent tuples to be marked as dead in subtransactions on standb Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OEjk6uY5XvMrahpU" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --OEjk6uY5XvMrahpU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Dec 19, 2023 at 03:15:42PM -0500, Robert Haas wrote: > I don't think this is a good commit message. It's totally unclear what > it means, and when I opened up the diff to try to see what was > changed, it looked nothing like what I expected. (Not my intention to ignore you here, my head has been underwater for some time.) > I think a better message would have been something like > "startedInRecovery flag must be propagated to subtransactions". You are right, sorry about that. Something like "Propagate properly startedInRecovery in subtransactions started during recovery" would have been better than what I used. > And I > think there should have been some analysis in the commit message or > the comments within the commit itself of whether it was intended that > this be propagated to subtransactions or not. It's hard to understand > why the flag would have been placed in the TransactionState if it > applied globally to the transaction and all subtransactions, but maybe > that's what happened. Alvaro has mentioned something like that on the original thread where we could use comments when a transaction state is pushed to a subtransaction to track better the fields used and/or not used. Documenting more all that at the top of TransactionStateData is something we should do. > Instead of discussing that issue, your commit message focuses in the > user-visible consequences, but in a sort of baffling way. The > statement that "Dead tuples are ignored and are not marked as dead > during recovery," for example, is clearly false on its face. If > recovery didn't mark dead tuples as dead, it would be completely > broken. Rather than "dead" tuples, I implied "killed" tuples in this sentence. Killed tuples are ignored during recovery. -- Michael --OEjk6uY5XvMrahpU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmWHl70ACgkQnvQgOdby QH3kmxAAk3Cj4c6osx4NhT5fjHXX1hry3fV+vvU/pf+oDeQ2wj+kzUbZW946vV2b RZumsSebXxAvH9q1ZkNySJcUyP2tLypwO9+NyXnRskk+B6eHmn23lMFJoVfc7i9O KQCwSvSpqf/G/G2y+Ko7OwZxsmY3aCTn4WjVnzEpFo461unm02rHL+wwoI7g6dap mQeAF+OfZYnv28wfuqhNwf4XyuBX0vLZgAyNcjCbNgZ+6pSpnc5W77lfgmVfp42I zPDW8pmmbevyAKbj3LRstTNqJTe56Vr8WtVvyq/0oRZ6EjqQrcf/WmELCYRW03pG PMGZZ9zWSNmfmrodGnRtOupHJhjJJzSp4rPRWF2ABLn6fVyAxUr+PheG7F1wMTfl 3qDNqByhkcV9Tf2IMsh3lcFe+EpHo8JXsFjYP6bI0BhZjm3oupq0ZItBzf44tCxQ HNFPynaxmaZgjfGclPIaec1abDxmry8IXV+c1R0Pl7aSyiwAi/sLIM7Qxp9Ss1dI /oMKqwXmu6v6VmCKJodFvMrmf8zMNWHn9UYoVPrrv/w8HDxh04INOlz6ZDaJNKBw e8ePp9Jvchb0QV2cJleYGRTADWCUZWD+dtVT3tFhEducuRMjyE/GB74tQpk4ub5z p2Fd7+ZIHzOqJeKfaFJyUx6F4+KhX+ZY2MJJTrt6l2bJqoDrXI4= =0HnE -----END PGP SIGNATURE----- --OEjk6uY5XvMrahpU--