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 1r6Ebc-0007Zl-6w for pgsql-general@arkaria.postgresql.org; Thu, 23 Nov 2023 18:39:16 +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 1r6Eba-003K6P-TB for pgsql-general@arkaria.postgresql.org; Thu, 23 Nov 2023 18:39:14 +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 1r6Eba-003K6H-IS for pgsql-general@lists.postgresql.org; Thu, 23 Nov 2023 18:39:14 +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.94.2) (envelope-from ) id 1r6EbY-0084wj-0q for pgsql-general@lists.postgresql.org; Thu, 23 Nov 2023 18:39:13 +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 3ANId9UI3163409; Thu, 23 Nov 2023 13:39:09 -0500 From: Tom Lane To: "David G. Johnston" cc: Zahir Lalani , "pgsql-general@lists.postgresql.org" Subject: Re: Odd Shortcut behaviour in PG14 In-reply-to: References: <3156490.1700761250@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Thu, 23 Nov 2023 11:30:57 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3163407.1700764749.1@sss.pgh.pa.us> Date: Thu, 23 Nov 2023 13:39:09 -0500 Message-ID: <3163408.1700764749@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Thursday, November 23, 2023, Tom Lane wrote: >> This question is unanswerable as given. You have not even defined >> what you mean by "fail" (error? wrong query result?), let alone >> provided enough detail for someone else to reproduce the problem. > The OP complains about the apparent inconsistent optimizing away of the SRF > function call of crypto_secretbox_open in the lateral when the join > predicate is known to be false. Hmm, your crystal ball apparently works better than mine today, because I sure do not see where that information was presented. regards, tom lane