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 1rT6nr-000U0D-C2 for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jan 2024 20:58:27 +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 1rT6nq-003ptj-G2 for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jan 2024 20:58:26 +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 1rT6nq-003ptb-6B for pgsql-hackers@lists.postgresql.org; Thu, 25 Jan 2024 20:58:26 +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 1rT6nn-003MSX-Pd for pgsql-hackers@lists.postgresql.org; Thu, 25 Jan 2024 20:58:24 +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 40PKwKdO451196; Thu, 25 Jan 2024 15:58:20 -0500 From: Tom Lane To: Andrew Dunstan cc: Jeevan Chalke , Peter Eisentraut , PostgreSQL Hackers Subject: Re: More new SQL/JSON item methods In-reply-to: <448055.1706214831@sss.pgh.pa.us> References: <1d092c02-8249-4e56-8b8e-ae4db95b8fde@eisentraut.org> <5d37428e-0753-e721-8e77-81cc4d0dc9f1@dunslane.net> <439811.1706211069@sss.pgh.pa.us> <448055.1706214831@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 25 Jan 2024 15:33:51 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <451194.1706216300.1@sss.pgh.pa.us> Date: Thu, 25 Jan 2024 15:58:20 -0500 Message-ID: <451195.1706216300@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > There's something else going on, because I'm still getting the > assertion failure on my Mac with this fix in place. Annoyingly, > it goes away if I compile with -O0, so it's kind of hard to > identify what's going wrong. No, belay that: I must've got confused about which version I was testing. It's very unclear to me why the undefined reference causes the preceding Assert to misbehave, but that is clearly what's happening. Compiler bug maybe? My Mac has clang 15.0.0, and the unhappy buildfarm members are also late-model clang. Anyway, I did note that the preceding line res = jperOk; is dead code and might as well get removed while you're at it. regards, tom lane