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 1t9ACn-0088sR-Ck for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Nov 2024 21:38:16 +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 1t9ACk-002ttj-Qj for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Nov 2024 21:38:15 +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 1t9ACk-002ttb-H0 for pgsql-hackers@lists.postgresql.org; Thu, 07 Nov 2024 21:38:15 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t9ACh-000jto-4y for pgsql-hackers@postgresql.org; Thu, 07 Nov 2024 21:38:14 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 8FD321380604; Thu, 7 Nov 2024 16:38:10 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Thu, 07 Nov 2024 16:38:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; 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=fm3; t=1731015490; x=1731101890; bh=t7iN3udv8Q cxNh91wqNhE+owLL9PMNSEiFOm+e5SU8k=; b=WgtTWIGGnZoIcpxxQS2Z9opEWv rwugz5osrHgXRk5xawPsiESzspGSZ1dMi4W4nP7N1sdFfckNwOOt/bqJmvIumHpv fyd15lNCoUZzjcBeKQ2TvXH9/3UTvHA8wOXmkt/kP4ujU54nKKNsi1KnL1DhB2te VyfyAC0AjrAmfACOJSuvciN4ZFzcH8W3ncyKdDkUMX/lqhn3Ke7O+F9HVYZ6XqAm SAdcqMHTU2EKZ2OH1iqH0eneyXdSm4GcGKsCwRTEdwcTseiVTYX3OIJoTa/sechI IOqvAW7Id5qIJrBrF1ytiTwFCtWTITIFfEaLncYIIAyAtP2/fqrnTKoYJFJQ== 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-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1731015490; x=1731101890; bh=t7iN3udv8QcxNh91wqNhE+owLL9PMNSEiFO m+e5SU8k=; b=LviqD3LqHiyhwvSMTIAPNYL5utxfouKM6bBPrwui6yAizqk6yRV JFLMBlP8+FaC1V3swQZXKgxVkL2LR1f/VNft7hOjgMPQ7SNkV+maXrx/fYQpCzoq KIEGA7M8swUmSQWb3oeKT1F/kHl/XEx7fNMlEvghsO55qBoWrYhZqyCGelgj+X0j dv3nX9ScMCk1P3ubn6cQL0oHpALeqHTZKaFbWdkiH9BPNVdmpoGc60L9FTjXjl90 90gbX6fQS2pE0mHcGPFJAT+0jpJqOMZW4WJZdEphWGc5dKzItv5FTsBaj4leEU/K qmZNcRsCmPW5wAPVqG+/UhbDbFtg5Bto6Xw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtdeggdduhedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvfevuffkfhggtggujgesthdtsfdttddtvden ucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivg hlrdguvgeqnecuggftrfgrthhtvghrnhepfeffgfelvdffgedtveelgfdtgefghfdvkefg geetieevjeekteduleevjefhueegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdruggvpdhnsggprhgt phhtthhopeejpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehhohhuiihjrdhfnh hsthesfhhujhhithhsuhdrtghomhdprhgtphhtthhopegrmhhithdrkhgrphhilhgrudei sehgmhgrihhlrdgtohhmpdhrtghpthhtohepshhhvhgvthgrrdhmrghlihhksehgmhgrih hlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghs qhhlrdhorhhgpdhrtghpthhtoheprghlvghkshgrnhguvghrsehtihhmvghstggrlhgvrd gtohhmpdhrtghpthhtohepthhomhgrshesvhhonhgurhgrrdhmvgdprhgtphhtthhopehj rghnseifiheftghkrdhinhhfoh X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 7 Nov 2024 16:38:10 -0500 (EST) Date: Thu, 7 Nov 2024 16:38:09 -0500 From: Andres Freund To: Jan Wieck Cc: Amit Kapila , Aleksander Alekseev , pgsql-hackers , shveta malik , "Zhijie Hou (Fujitsu)" , tomas@vondra.me Subject: Re: Commit Timestamp and LSN Inversion issue Message-ID: References: <9f7f4def-7ea8-4ad3-83e7-a8cc9d18c58a@wi3ck.info> <1985a43d-0b6c-491c-9e0b-956fc364a58a@wi3ck.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1985a43d-0b6c-491c-9e0b-956fc364a58a@wi3ck.info> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2024-11-07 15:05:31 -0500, Jan Wieck wrote: > On 11/7/24 13:19, Andres Freund wrote: > > I think it's *completely* unacceptable to call a hook inside > > ReserveXLogInsertLocation, with the spinlock held, no less. That's the most > > contended section of code in postgres. > > Aside from your technical concerns, can we at least agree that the commit-ts > vs LSN inversion is a problem that should get addressed? I'm not against addressing it, but I'd consider it not a high priority and that the acceptable cost (both runtime and maintenance) of it should would need to be extremely low. Greetings, Andres Freund