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 1tt61F-008Z5r-W4 for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Mar 2025 14:28:13 +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 1tt60F-008onu-W9 for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Mar 2025 14:27:12 +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 1tt60F-008onm-N5 for pgsql-bugs@lists.postgresql.org; Fri, 14 Mar 2025 14:27:11 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tt60C-002qh0-0F for pgsql-bugs@lists.postgresql.org; Fri, 14 Mar 2025 14:27:11 +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 52EER7Pc3055351; Fri, 14 Mar 2025 10:27:07 -0400 From: Tom Lane To: pm91.arapov@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18848: DEREF_AFTER_NULL.EX.COND After having been compared to a NULL In-reply-to: <18848-62f448851e967b5c@postgresql.org> References: <18848-62f448851e967b5c@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Fri, 14 Mar 2025 09:12:41 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3055349.1741962427.1@sss.pgh.pa.us> Date: Fri, 14 Mar 2025 10:27:07 -0400 Message-ID: <3055350.1741962427@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > Looks like there is inconsistency with 'ind_name' and 'int_type' checks. In > one place both are checked. In other place only the second one is checked. > It's possible that when the second is not NULL the first is also not NULL. > If this is so then the problem is not real. But it's hard to prove this. In > any case the code needs to be made more clear. Perhaps it needs to be made more clear, but this patch seems like no improvement. Adding that Assert accomplishes nothing --- the code will dump core if ind_name is null, with or without an Assert. Given the lack of field complaints, I'm inclined to believe there's not a bug here. regards, tom lane