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 1t6qDK-00Fuit-Hi for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Nov 2024 11:53:15 +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 1t6qDI-00CwyH-RP for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Nov 2024 11:53:13 +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 1t6olL-00CJoa-8o for pgsql-bugs@lists.postgresql.org; Fri, 01 Nov 2024 10:20:15 +0000 Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6olF-004ACj-Jk for pgsql-bugs@lists.postgresql.org; Fri, 01 Nov 2024 10:20:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=pv9Orx+DjDA+RWj1FcF/E3EZeusK8T2gmvTWk57gavQ=; b=h+qyFufeNC+rag65Q3dRVDHHJY wAX1Kwlt9AC+Mgh/MKFDAum2IQf8gBw60ZR01mqjSou2BEtKmnlE6folx7QAkaqd/gFlzVyLgunAO QVZGga1Ozh2H7qszbauECnh8rs0gwCY/pWKVhJtqiN/SLUzgCyzbDSVH05DpIvXclVpEkxgIDmrtX yLyGVZEhFC+FbjYbC/yWdEHem4rsJ5cFzBIC5EMoJ0wJuC1iODJRl7ZNV9zntHnY8F0HwaOo6mpmV zO6r/T1zuIU4LoJSwNfPIHOEbXMdHd4YLZ6j7iCK0lsO+6SNXEUWX61PcHz1rICetvp3nCQDxUgvD iQIBFbbA==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1t6olB-009kDW-6J; Fri, 01 Nov 2024 10:20:05 +0000 From: Bastien =?ISO-8859-1?Q?Roucari=E8s?= To: Thomas Munro , Tom Lane Cc: Heikki Linnakangas , pgsql-bugs@lists.postgresql.org Subject: Re: Detection of hadware feature => please do not use signal Date: Fri, 01 Nov 2024 10:20:03 +0000 Message-ID: <7915750.ZPPAYPQ7GT@portable-bastien> In-Reply-To: <1637254.1730441792@sss.pgh.pa.us> References: <4496616.iHFcN1HehY@portable-bastien> <1624905.1730436275@sss.pgh.pa.us> <1637254.1730441792@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart29464365.kJUuueShVr"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Debian-User: rouca List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --nextPart29464365.kJUuueShVr Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Bastien =?ISO-8859-1?Q?Roucari=E8s?= Subject: Re: Detection of hadware feature => please do not use signal Date: Fri, 01 Nov 2024 10:19:46 +0000 Message-ID: <7915750.ZPPAYPQ7GT@portable-bastien> In-Reply-To: <1637254.1730441792@sss.pgh.pa.us> MIME-Version: 1.0 Le vendredi 1 novembre 2024, 06:16:32 UTC Tom Lane a =C3=A9crit : > I wrote: > > Hmm. So it seems like we could do this: > > * Linux, FreeBSD, OpenBSD: do run-time test as recommended > > * Windows, macOS: assume that supported ARM hardware can do this > > * anything else: assume no hardware CRC >=20 > Actually, after chewing on that second point awhile longer, > how about this modest proposal: >=20 > * Drop all code for run-time determination of ARM CRC support. > Assume it's there unless user builds with a -march option that > says it definitely isn't. >=20 > Realistically, exactly who is going to be running Postgres 18+ > on ARM hardware that lacks CRC support? I can think of lots of > projects that are more worthy of our time than this. >=20 > (Perhaps it's time to apply the same mindset to x86 CRC support > too?) arm64 baseline for debian is without CRC so I will prefer to keep crc32 Bastien >=20 > regards, tom lane >=20 --nextPart29464365.kJUuueShVr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEXQGHuUCiRbrXsPVqADoaLapBCF8FAmckq0IACgkQADoaLapB CF9Y3Q//fvyl7rj3ZhzLLVI2V14KnOvTVGfObRXT1zxAWvP3Zu3N3Zjz7GM4FLze LPUZLQDzhPYZAiMfI4kWf1557A9Z68LpGvJc7w7e6MpXMwjvEzrY9h9pOgdbxXkK gk4ry8eQ5vAF+k+15wHyBrj/4oVLqxkrk71rA5AxgXnpy3LX1fjMGf5BlH96rwO3 ijaapWJFwL+hHdqeiyoVHb3jPEwwcWdoyU1ineOJA0sWaCQF6Az3vWQX4kd0Yq6F QZOM8NeeGVVCxg+JH6sZ+fk9ZbNh+/gNPSX2M47ongWgc2NHBZKKK8c6Kl789Von +RYoOb2Cp62+KhO74VGTtm4fLs2AaRwkyvGze3YdfKS18MmKqqfFJ3ppihM7gYVq hcitl1mJa6Dc9cW8QmJxJVOQrXe8yc86mS8soCns+nkBGLyTnc9d1aAuB94RioYU GPxBuUDfjdInk2oaHWluiLtTxlYwvdTwDWl0up3EWQyUwDj1FOOGsPEiXtOLyVdj Ehd0YEo9co/YXHx1dIHEH6OwaOqf8jcpnlK5NKwuz0BlkfbcQ0siiH3fxWpGri21 o8IYpkn1Vc1wHd9uFrCtLxmfMck+pyt5NbwqNKtKxeIm9w7A388KgBEVQwhUgQkg 5MpNAcF14UoYWwFImrblf8dLaY56eh56DqJYPkeHbZJ6iZCx4QQ= =PlT4 -----END PGP SIGNATURE----- --nextPart29464365.kJUuueShVr--