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 1rBFQm-00A5Mv-5w for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Dec 2023 14:32:48 +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 1rBFQk-000rpe-Pf for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Dec 2023 14:32:46 +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 1rBFQk-000rpW-Hb for pgsql-bugs@lists.postgresql.org; Thu, 07 Dec 2023 14:32:46 +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 1rBFQi-009GGW-7x for pgsql-bugs@lists.postgresql.org; Thu, 07 Dec 2023 14:32:45 +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 3B7EWhs11268115; Thu, 7 Dec 2023 09:32:43 -0500 From: Tom Lane To: rekgrpth@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18233: coerce_type accepts NULL as pstate and can pass it to coerce_record_to_complex In-reply-to: <18233-98fe3f5ee55550ff@postgresql.org> References: <18233-98fe3f5ee55550ff@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Thu, 07 Dec 2023 12:49:23 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1268113.1701959563.1@sss.pgh.pa.us> Date: Thu, 07 Dec 2023 09:32:43 -0500 Message-ID: <1268114.1701959563@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: > coerce_type accepts NULL as pstate and can pass it to > coerce_record_to_complex, which passes it to GetNSItemByRangeTablePosn, > which dereferences it. Can you demonstrate any actual bug here? If so, it's not coerce_type's, which is clearly documented to allow NULL. regards, tom lane