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 1t6Zrc-00DyO6-9I for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Oct 2024 18:25:44 +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 1t6Zra-004ihO-Et for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Oct 2024 18:25:42 +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 1t6Zra-004ihD-3V for pgsql-bugs@lists.postgresql.org; Thu, 31 Oct 2024 18:25:42 +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 1t6ZrX-003pQf-Vr for pgsql-bugs@lists.postgresql.org; Thu, 31 Oct 2024 18:25:41 +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 49VIPYeN1292594; Thu, 31 Oct 2024 14:25:34 -0400 From: Tom Lane To: Heikki Linnakangas cc: =?UTF-8?Q?Bastien_Roucari=C3=A8s?= , pgsql-bugs@lists.postgresql.org Subject: Re: Detection of hadware feature => please do not use signal In-reply-to: <7ec1c65c-1a28-49a7-af43-f77c260a3df6@iki.fi> References: <4496616.iHFcN1HehY@portable-bastien> <1156374.1730396928@sss.pgh.pa.us> <7ec1c65c-1a28-49a7-af43-f77c260a3df6@iki.fi> Comments: In-reply-to Heikki Linnakangas message dated "Thu, 31 Oct 2024 20:01:41 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1292592.1730399134.1@sss.pgh.pa.us> Date: Thu, 31 Oct 2024 14:25:34 -0400 Message-ID: <1292593.1730399134@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Heikki Linnakangas writes: > On 31/10/2024 19:48, Tom Lane wrote: >> Maybe we could do it one way on linux and the other way everywhere >> else, but I do not find that attractive; it just makes it harder >> to get full test coverage. > Bastien, would you happen to know how other portable libraries that need > to run on other operating system do this? We added the SIGILL probe back > in 2018, there might be better options available now. It occurs to me to wonder whether the existing code works on Windows. Windows-on-ARM wasn't a thing we thought about in 2018, but it's a reasonable target now. regards, tom lane