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 1sOIV8-00DWvi-E0 for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jul 2024 14:59:30 +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 1sOIV6-002i78-CI for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jul 2024 14:59:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sOIV6-002i6V-2l for pgsql-hackers@lists.postgresql.org; Mon, 01 Jul 2024 14:59:28 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sOIUz-00431T-So for pgsql-hackers@lists.postgresql.org; Mon, 01 Jul 2024 14:59:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 461ExIY72741229; Mon, 1 Jul 2024 10:59:18 -0400 From: Tom Lane To: Alvaro Herrera cc: Alexander Lakhin , Bharath Rupireddy , Andres Freund , Jeff Davis , pgsql-hackers@lists.postgresql.org, Jaime Casanova Subject: Re: LogwrtResult contended spinlock In-reply-to: <202407011454.hni6ldpc3hoa@alvherre.pgsql> References: <202407011454.hni6ldpc3hoa@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 01 Jul 2024 16:54:51 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2741227.1719845958.1@sss.pgh.pa.us> Date: Mon, 01 Jul 2024 10:59:18 -0400 Message-ID: <2741228.1719845958@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > Maybe we can do something like this, > +#if MAXIMUM_ALIGNOF >= 8 > uint64 currval; This should probably be testing the alignment of int64 specifically, rather than assuming that MAXIMUM_ALIGNOF applies to it. At least historically, there have been platforms where MAXIMUM_ALIGNOF is determined by float quantities and integer quantities are different. regards, tom lane