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 1vvy3Q-00CwvG-1j for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Feb 2026 13:38:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvy3P-003Vs1-1k for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Feb 2026 13:38:51 +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 1vvy3P-003Vrs-0q for pgsql-hackers@lists.postgresql.org; Fri, 27 Feb 2026 13:38:51 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vvy3M-00000001Zlp-24BV for pgsql-hackers@lists.postgresql.org; Fri, 27 Feb 2026 13:38:51 +0000 Received: by mail-qt1-x844.google.com with SMTP id d75a77b69052e-5062fc5d86aso18544171cf.1 for ; Fri, 27 Feb 2026 05:38:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772199527; cv=none; d=google.com; s=arc-20240605; b=DofQCGppAe13DV/1cWJ3xalny6TdGMBBeEM3Jp80oiG7/YtoJCJzRwCjCxlHmnTQtc bgsaiuXNFP35nmEL+UVjL5pafGv8lvU0M7LV3Dy6TQun94ZboOVyqIWQqifx7hk7GGF/ mZ9SOiHOtyuRoMiTU6NGc4hb2bFDKi1saLacvveRuJyZAth33a3LhM0qpW931GjSNfef +ALln9iiCiRkFvQLG4c//K0mL89ix4UWHYdpiew+wKr9Fxe6dKjiT1InjKXhyHh7J2TD cxSUFER5KnaQWX2MYzXjsPYReBudJEKQBS2oEOIwy+emF+/EQYy0lz6C4KDUldpEbfzl MwJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KZoNA8gBoc1xjprJoU1RkP3P8f0qXXgtSnO3H+J8q4s=; fh=y870jslA3vp44TCr9aR40GD/y/FpiMewcjCE783BTCg=; b=RPcALfpBQV6nnB36W9OUxrL9bpcf+en2jymAHK+yKBBJVxjVAkQEfq6sIcaJ+gXIVb SAQXrNZfCap7htB8i4BcSvfpF0KZFaz8rnTRRllxdqs9QS+woQLtMRvZbl3kG8gBCjY/ aefPN+tkqU2jZNLTbMHfVu2bVtWqLkLE3Z9h95H+Ss5Pi7VpXG06HlPWiKHoLks9rmXS Nj+wG6k7xKlUjYKGcmT9BxOePggZd4Z3u8t5FPR9hw59puXYkOEoKYpWxfL+DRf6ktAX 62jkAUvKsO8TMTGg+f+/toTZWJMzhJskMybosfJXPEUrcl9luX3isxVtfKBb4SQJ1f0K u0Fg==; darn=lists.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=20230601; t=1772199527; x=1772804327; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=KZoNA8gBoc1xjprJoU1RkP3P8f0qXXgtSnO3H+J8q4s=; b=FpsVvphrlr3uUZzMA2AnTs12a+Z8MOQkNjgO1dBXJDjdjPRprWLjOBaplnGoetF88V Y80yK1DFbZA3DnyzcsBCxS8g2Pimw6cGndmV3HM5I+pK19Ox8863Jvj+Nvk6D+XKrvZ0 fHbi9lzjm9Ojn60u/UbRnM10a+Znc3wPOqhrbV4gxSSKhgLPGW8RBYWMPmhy1PJ5lzhv K2poIjoi6+rGUXol/xtW6mJYRgvLZ6Ae7As/vB4/k2FF/3lSILom3uWq80b7iMJQMwU/ 59cDYIRwl7D0cm5c1rqONNTUYpnTP+Tfg5jDr57WtumV9rjpOr7APFeObR5KoiRgSZpA /9yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772199527; x=1772804327; h=content-transfer-encoding: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; bh=KZoNA8gBoc1xjprJoU1RkP3P8f0qXXgtSnO3H+J8q4s=; b=MEed+Q/iM2YDxvSUmqZUkxX38eqYEAevtNimoK8/fRmjzrJRV1JWuyRJ2vDt8/hVsb j2lzRLkySvQwll/5KfIgMjPwqlLY8E7FRQKouBFcGbqpqMHC4mvoB8MrFiXxH8Zfnv8k EUo2Fxi4j7i5w8eclDBNcZzpkap5UBCMuL/GeYdKY0jS/UfIVFUCn9geKJXD6/2PqnNh sFmLQ8BJLZ+um6DDAhd4grAzGxJXPVuZ6PBT3whg9a6wquIvAV2QB4bD/wJIRMr7l4zT VG+UKrIk4HUClBYxaLV1pm+qfxQD82RMBNfbBXC2+E7Q8I9xmo7l4/nwwJgzUVuUNve5 PlRQ== X-Forwarded-Encrypted: i=1; AJvYcCVTP85U7f+wpUwNRhYh9qUvBk+UR/fIxz8U42y2bTxX0edWW1W69IqYv2nRzRmiTMxW+7XcBuD8pKzA/7+v@lists.postgresql.org X-Gm-Message-State: AOJu0YylYeVy5fs35/kfEDwBjghc3U4pygRCyYlLL7+bfp9sQepFOwiA gYOExRVUvOQjuBKxCZ2fToIMtof3YgzUPtxCb/2nJipjO86381malESdmb3i61A4Vrc8niX8w3E RO1oL5JP9/128D2HL8uzXigyiknZeKzY= X-Gm-Gg: ATEYQzysHBr0hCyk1wsOlrGMu6SNInpJnHKtGtXhWnT2CB27WRaEgx1yJgbIhCbKvUD Nkk8O9yBCYXAqUApK629F96t2R9BSLOWitPYYrXb2Jt+8wISM3UUkGUO3wzFFAnh6G0rf8L4StU XhQQJg2+5DWQ/cdvflios1EPQfKKH9/U1fCBYS7KOOYpuu4J9bq8aMS/SLWPvH8cnaoWkyxaQt8 1S+bWDkQFvL7dprSTK5XAVAYgVqjEZxcQ3G303YA1Nz9pXQYqe5Wgi7HvYRwqb+3xllvSDAYk2K MY/Dv6SsTWGzyrWanPDhidv2zAoEf9ZTnL4ifABfBl87rKpbWJoAqWmnqC2OqVHg+SiuzrkL74D ujVbka/Gn+/Z0NWIeG/Ga9Id5ZAQ= X-Received: by 2002:a05:622a:189c:b0:4ee:1f22:3613 with SMTP id d75a77b69052e-5075281b5c8mr35201971cf.62.1772199527365; Fri, 27 Feb 2026 05:38:47 -0800 (PST) MIME-Version: 1.0 References: <4014992.1771963187@sss.pgh.pa.us> In-Reply-To: From: John Naylor Date: Fri, 27 Feb 2026 20:38:36 +0700 X-Gm-Features: AaiRm51ZLAIs2yTm8P8qED3nMsEl2ZpKtfHSB6HAdaidWnHT0KTl1CM1rITYuLs Message-ID: Subject: Re: centralize CPU feature detection To: Zsolt Parragi Cc: Tom Lane , PostgreSQL Hackers , root , Nathan Bossart 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 Wed, Feb 25, 2026 at 8:09=E2=80=AFPM Zsolt Parragi wrote: > > Both look good to me. Pushed 0002 after making sure AVX-512 detection still worked, thanks for the review! I think 0003 needs a link to the Intel manual for the XCR symbol values, and I'll push shortly after I add that. > This isn't part of the patch, and it seems harmless, but while > reviewing the CRC functions, I noticed that pg_crc32c.h is > inconsistent with its dllimport markers, pg_comp_crc32c has 3 > different declarations, and only 1 of them is marked PGDLLIMPORT. Yeah, I think that crept in during development to keep Windows CI building with a not-for-commit test module. I'll remove it soon. --=20 John Naylor Amazon Web Services