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 1tdLFY-006Tva-CI for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Jan 2025 03:29:52 +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 1tdLFW-009lH0-F6 for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Jan 2025 03:29:50 +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 1tdLFW-009lGs-5R for pgsql-hackers@lists.postgresql.org; Thu, 30 Jan 2025 03:29:50 +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 1tdLFS-002HOF-2z for pgsql-hackers@lists.postgresql.org; Thu, 30 Jan 2025 03:29:49 +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 50U3TWmP3070952; Wed, 29 Jan 2025 22:29:33 -0500 From: Tom Lane To: Heikki Linnakangas cc: Xing Guo , Andreas Karlsson , pgsql-hackers@lists.postgresql.org Subject: Re: JIT: The nullness of casetest.value can be determined at the JIT compile time. In-reply-to: <1c767ec4-709e-45b1-bc0e-add024326e77@iki.fi> References: <1c767ec4-709e-45b1-bc0e-add024326e77@iki.fi> Comments: In-reply-to Heikki Linnakangas message dated "Fri, 15 Nov 2024 11:38:08 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3070950.1738207772.1@sss.pgh.pa.us> Date: Wed, 29 Jan 2025 22:29:32 -0500 Message-ID: <3070951.1738207772@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Heikki Linnakangas writes: > Huge +1 for cleaning up this abuse of caseValue_datum/domainValue_datum. > While correct and sensible if we continue the abuse, these patches feel > like putting lipstick on a pig. Agreed. I spent some time trying to do it better, with results shown at [1]. If we adopt that idea, then the executor's support for CaseTestExpr will go away, so there's little point in pursuing that half of the patch given here. However, I concluded that there's insufficient reason to redesign CoerceToDomainValue, so we could still push forward with that half of this patch. regards, tom lane [1] https://www.postgresql.org/message-id/3068812.1738206654@sss.pgh.pa.us