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.96) (envelope-from ) id 1whgI2-000MVC-0H for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jul 2026 04:23:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1whgI0-00AlQ8-1i for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jul 2026 04:23:09 +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.96) (envelope-from ) id 1whgI0-00AlQ0-0m for pgsql-hackers@lists.postgresql.org; Thu, 09 Jul 2026 04:23:08 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1whgHy-00000000P0K-11By for pgsql-hackers@postgresql.org; Thu, 09 Jul 2026 04:23:08 +0000 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-7e9dc546f40so391097a34.1 for ; Wed, 08 Jul 2026 21:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1783570985; cv=none; d=google.com; s=arc-20260327; b=D6MaH80RF454AEe5XWOwB9BN1F2ka+RpbMWfXHp9iVwdtZOk9Yx7Z3W1Vfhq4LaKoc SqWCFuCrD876fXikZo+bMa/VY3oOulisVFd7F0L9OeMNlPIq8AtaxAq+x5CzevK29BNN 1y7Os75ay+Tue1zb3eamZPJC/E4fyEbAQ8TzDYoH36Ty1hsl81NDT5qPjrIkXrYInhjV 0ioSNspZT+WNfhLU8TmCdnYH2CTtL4p6qu0CPf6x2CVo/fnVf3uf+yfUzWaZCvUHYC3v 3R1R4a+6xup26veus4SLr8U1VOmIsuE2nJ7vnLMrCHFp25r+qHYgYJxcfPwnBeKcxxbq lCcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=iePWW7O2wM54X+1vkuxD/v90sh5GRE1QzaqmkSG6ZjI=; fh=uTwe40v8AJcP/j33mhyJpoTS3KF2fkKl36Rsqgx5yvI=; b=obODq4A8j1kvYJdvV3uzXP1f4j4M5TZuxh6pxZfZoWUXZn5XkdB8SrnoNWukTc1RLV v2pcQRdFnr0zucztrfN6L2QrKQRZFQYAHFr4BTD+S6PeaFWdv1NWHXMEHmEwBJLrikBN 6796VWSxOov/CGIlliNYwoTRwD/zedex/MiDH5buYVhpElV47eiIgQalQb7KTkbYp1IJ 9CtMri3IJQq6Y0mU6aWOJIM0rEfr6Tn2Ic/kyJoM1Kfb1Sq+9oizCDe0L9qutYxORQiG UDafc2pqxcvvt1OecUw5qgdpWROpWqo4qPAxO97FBoPBkeefrpY0f2BrShpwat403TIT 1HoA==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783570985; x=1784175785; darn=postgresql.org; h=content-transfer-encoding:content-type:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:from:to:cc:subject :date:message-id:reply-to:content-type; bh=iePWW7O2wM54X+1vkuxD/v90sh5GRE1QzaqmkSG6ZjI=; b=OVsD1ALVi7xl8/1pvZjAFQU4pOFNe7qAyOMwDfSY6mVdoNRCOTQGYwgqdS7IK5U0hz sFcl+FO3vr7i44mPj5/nnmbO4aTS7l2U5Y+O8Xbsg5D4ro6v1NwGzFQ6enQOn47vFju7 6EuOsp+yesEAiuVnPTqpQ19GMkngjo4CVbUnQStG1jW6rF4KLxxcH49/CXqFQTjTR1zH QptXwqZCZjCiuT+5SLP8XCNHZSHuuGZtp1bPukLqb9Px3NcfJ8QpJ64kmyi7Lh9X2Ffz z36axb46iBER/c3s1JRWcqaRg8prSaPJQoiqle2iv7yiH/3ZiciBVY+O+IS9oIZnvPn6 fUOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783570985; x=1784175785; h=content-transfer-encoding:content-type:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=iePWW7O2wM54X+1vkuxD/v90sh5GRE1QzaqmkSG6ZjI=; b=h17iKyTZHyKNdODgUTcD+XM32nA5bFDrH7K2wTknsTD8jgESxB66dr3ma+KEk5Xm8+ vTJghc0cJLYaWSe5FuYMfrO/eAmQfopVCbQIR+k0x+pXfd1FkhtXq8fZqu5YM6CRvOre AulgVa55fJ/CA6vzhVC0Q5w0WvkX8Ymc1KcGry8wJ/EdeSIOuJvEtJPEOB8ZEsIFsTYE uNCri9XFNLTHeBcZJx22rLPhbwn4K+jWiMOQY2n4/sSwWnmfP8ntEfQnwqdwykerhIHv hBwltdE1h4y7gHlimR1qWRzqs9EKEXe0GnWs4mNpyUvn2iYAe+gXz130Ctb0iGiVU7UM DZCw== X-Forwarded-Encrypted: i=1; AFNElJ/s7+SzmeLnX4FOJ0NLI39dNCFZcL3WtSqFl89sn0lYErgi/Sho6sdR1kmnyW8765zegVZjMv8Ouyxp46kI@postgresql.org X-Gm-Message-State: AOJu0YwkuGJzPuAqobI7O64qMx2itNmdCqgE4dXVQfCwkjtdBCeOBOaY xsjLGFL7UL1xwv53oNEpbtNvVRnc5MTO16ek0urRs71ALJHAkYYhDER8ZlpdAURufdX+FnNgBuA DO/a09YoBrbML60NRU8f7dYmZlXKs8OA= X-Gm-Gg: AfdE7cnM0HwDA97O2zrdszNk6ywMfLMC//VF94U+au9BbeIyauqA5C/eySzDudv8f+7 TEwTd4bKk7cx27qeirrlw6n8quBVJD7967/I4QcR1toiK/Lmdczz3jmQr/jMSrkrXB6uBPD9Ydu 32e65A+xv41PYYSWgUA2wOaDVptJYDLj6Q/s5l/5EPUb6yhpj2VWECSjxiif6GOIBsxvzNctvKj M4QUunufBa6DzPl1taBqW47wIvwTLh8pv+UQjpQoTQDRlEPnE/mtw10v5mAsAuC9BMuP0xitbFY uOOLsEOLZ56Rx58UQEuukKmKCPR1zvris+i7rK2WXd9P51SM5Pg+08symlGNre4070IIUqCVaFo ukIdH84AleHtFTX1xaWg06Q== X-Received: by 2002:a05:6820:169e:b0:6a1:5097:667 with SMTP id 006d021491bc7-6a37d9d7a0bmr1129624eaf.34.1783570985117; Wed, 08 Jul 2026 21:23:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fujii Masao Date: Thu, 9 Jul 2026 13:22:52 +0900 X-Gm-Features: AUfX_mwFiRZ6JUrYiWXgU0IxeR_JAlZBmR4a5E11amOAGQMiWEEd5CMbhB7W65g Message-ID: Subject: Re: remove WaitEventCustomCounterData To: Michael Paquier Cc: Nathan Bossart , pgsql-hackers@postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jul 9, 2026 at 1:04=E2=80=AFPM Michael Paquier wrote: > > On Wed, Jul 08, 2026 at 09:50:33PM -0500, Nathan Bossart wrote: > > While trying to understand the extent of our spinlock usage, I noticed = that > > WaitEventCustomCounterData->mutex is unnecessary because the counter is > > only ever accessed with WaitEventCustomLock held exclusively. So, here= 's a > > patch to simplify matters a bit. Thoughts? > > Indeed. This removal sounds good to me, thanks. #include "storage/spin.h" seems no longer needed in wait_event.c, since the patch removes the last use of the spinlock code there. So we can remove that include as well? Regards, --=20 Fujii Masao