Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEcXo-0006F0-Ap for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Feb 2021 18:36:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lEcXl-0006EP-Nn for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Feb 2021 18:36:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEcXl-0006EH-H1 for pgsql-hackers@lists.postgresql.org; Tue, 23 Feb 2021 18:36:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEcXj-0006i3-GJ for pgsql-hackers@lists.postgresql.org; Tue, 23 Feb 2021 18:36:20 +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 11NIaG0t3877790; Tue, 23 Feb 2021 13:36:16 -0500 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org Subject: Re: Some regular-expression performance hacking In-reply-to: <20210223181851.anhe4apzefvk6noh@alap3.anarazel.de> References: <1340281.1613018383@sss.pgh.pa.us> <20210223173437.b3ywijygsy6q42gq@alap3.anarazel.de> <3876576.1614103758@sss.pgh.pa.us> <20210223181851.anhe4apzefvk6noh@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 23 Feb 2021 10:18:51 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3877788.1614105376.1@sss.pgh.pa.us> Date: Tue, 23 Feb 2021 13:36:16 -0500 Message-ID: <3877789.1614105376@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2021-02-23 13:09:18 -0500, Tom Lane wrote: >> Oddly, I see no such warning with Fedora's current compiler, >> gcc version 10.2.1 20201125 (Red Hat 10.2.1-9) (GCC) >> Are you using any special compiler switches? > A few. At first I didn't see any relevant ones - but I think it's just > that you need to use -O3 instead of -O2. Ah-hah, -O3 plus remembering to disable assertions makes it happen here too. Will fix. regards, tom lane