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 1vDwH7-001hTs-TY for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Oct 2025 02:51:01 +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 1vDwH6-00GGuU-Py for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Oct 2025 02:50:59 +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 1vDwH6-00GGuM-GW for pgsql-hackers@lists.postgresql.org; Wed, 29 Oct 2025 02:50:59 +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.96) (envelope-from ) id 1vDwH3-004o6H-23 for pgsql-hackers@lists.postgresql.org; Wed, 29 Oct 2025 02:50:59 +0000 Received: by mail-qt1-x844.google.com with SMTP id d75a77b69052e-4ecf2244f58so28200321cf.3 for ; Tue, 28 Oct 2025 19:50:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761706256; x=1762311056; 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=D5sOzbtuWIQPPesXPeDwexSo+4bl5HkrXKsDBKjxuWg=; b=Hcal4rk04v0TNSWUO7DQmGPGw1ypFugsbmZ1MIOSWPZly6OCRdVaQYEly+4hRr9FFM ecrbDeO4e6cr3Mg/TjhEERTuTyDLZ5CV3UIyNmysAyIh2rmOF8i5HvcZyoTBwxz0m21N QXt6JQ9p0fc8ClzkmL5o80fCnLAjAOgbD1kv5QZiKg9XtSV+ClkdRlDN6NZcUKfEgJHV ma9sOW76ckmvlElFZ7u/P6g+9nmvrpFg7Cc/HtF5gl1bXkoWiVhtyEpjrZQhbTNSjgMz 5yvkdn9uTpvBQGzvYVbiuDtKzZy+YyIPx0ECZcMkHTfzE7gkDdVazIcUgMMj0YztogsY HmQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761706256; x=1762311056; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D5sOzbtuWIQPPesXPeDwexSo+4bl5HkrXKsDBKjxuWg=; b=CLG5+DZ1Pwt+XOQtwg5+3k1LgJLMUxCSha2dZcs4WWS10fJruAaPUm4jnLYanWFc7H QiH1uuuYabkfBG01V5jnKQY1V2SL889iZMIGWvUoqxt038OeeJhYyJ2JdKkq0iz+OWgA i3ocDyHLvpeSf6APYO9wdIG+T5D1XzCIhnT8BrsgN2oImHb3BW5qprt+jEtrnILkAfgN IEuHw8rKfhQ6ySm5pbi4HShcaH2+RXsqMJOAIPe7EL8GGxpGsCA09wlpyqjSMytADl7y msZ55RQBbJCZtALBMBr1p5cRvDxUu8i6NAROkWVCNyAc9oRAl60tOSMVoV5mIKG/VFqu O36w== X-Gm-Message-State: AOJu0Yyh9HtzrAaDW27wHjKf37QtOivzjD756plO1RYGWO8CsjfXd/Ml tSQ2PiaqIgjuoj+x2tEZCZWEAdk+g52RQW8IFm7XT2WjqxnWv/k3hI4ccFkDtReWDCiy3tBP1eY Z0RJs+V/8d+hDypDtqFhIiLSxsTW42JY= X-Gm-Gg: ASbGncsqWMEHc6qJVha/PCy+zlRijg5ExqORt4EIL4ekkLQYMk7SVwj0A3FcW5v4im4 Qz+UTo+NteTH66jVLaHrqlMoKMOPymmkSrADmbQwz2Tk/427EU+0j9GHzjkx0iXVrYdod0cA8nR sifDMaj0JuEqSC+nC60vs8VGbknIMAoHSxhUkVam9uqEWObEDO5v1Mj8PPABUDifOUsSSPPUaaD j+cIFLslvEZ1V4PqyTsFGWuScCM25+rFlWgLTULoBYPacyB36nL+74HOWbmG03SMsLNv6Dj9kVK d61utxR9Qy4P7afdV5RnrgITIiWgD2NKjXWG/eXdLdEYZE8ePonQd5tdkf5vvwZsZ6eWFE6MNfN EQbcm X-Google-Smtp-Source: AGHT+IHBgtYGZhM7VB+KFDWlxY4QUkowtWzuH8/UY41ZU3xnd6TvqXgyPpXKQ7AHQF6f6VqqjpbVa8S51A9ladJRoDs= X-Received: by 2002:ac8:5846:0:b0:4ec:f5a1:a2b9 with SMTP id d75a77b69052e-4ed15b5aca1mr18009171cf.37.1761706256230; Tue, 28 Oct 2025 19:50:56 -0700 (PDT) MIME-Version: 1.0 References: <20250911054220.3784-1-root@ip-172-31-36-228.ec2.internal> In-Reply-To: From: John Naylor Date: Wed, 29 Oct 2025 09:50:45 +0700 X-Gm-Features: AWmQ_bnXBiXGa5Bzd8LDqvYdXAncoXNyIFvDswL5IwcDZwRXbjqIv7ZkUYq791M Message-ID: Subject: Re: Proposal for enabling auto-vectorization for checksum calculations To: Andrew Kim Cc: pgsql-hackers@lists.postgresql.org, Oleg Tselebrovskiy 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 Fri, Oct 24, 2025 at 2:49=E2=80=AFPM Andrew Kim = wrote: > The function signatures (pg_checksum_block, pg_checksum_page) remain > identical, and checksum_impl.h still contains the complete > implementation that external programs can include. The runtime > dispatch only affects internal PostgreSQL usage. I don't quite understand the architecture here -- all platform-specific definitions were put in the "checksum_impl.h" header. My thinking was that checksum.c would have all that, with thin wrappers around the functions included from that header. -- John Naylor Amazon Web Services