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.98.2) (envelope-from ) id 1x9y8a-00000002NJu-2YAS for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Sep 2026 05:06:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1x9y8Z-0000000GNvg-0BzC for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Sep 2026 05:06:19 +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.98.2) (envelope-from ) id 1x9y8Y-0000000GNvX-3C4V for pgsql-bugs@lists.postgresql.org; Fri, 25 Sep 2026 05:06:18 +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.98.2) (envelope-from ) id 1x9y8W-00000001920-0fa5 for pgsql-bugs@lists.postgresql.org; Fri, 25 Sep 2026 05:06:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 68P55spo1848967; Fri, 25 Sep 2026 01:05:54 -0400 From: Tom Lane To: shihao zhong cc: imchifan@163.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19699: LIKE with a trailing escape fails to raise SQLSTATE 22025 for empty input In-reply-to: References: <19699-dbaa58bbf8db1859@postgresql.org> Comments: In-reply-to shihao zhong message dated "Fri, 25 Sep 2026 00:59:59 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1848965.1790312754.1@sss.pgh.pa.us> Date: Fri, 25 Sep 2026 01:05:54 -0400 Message-ID: <1848966.1790312754@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk shihao zhong writes: + * ... this is cheap enough to repeat in + * recursive calls. This claim is unsubstantiated. Even if it were, I fail to understand why it's necessary to expend any cycles whatsoever on this point. Who cares if we don't throw that error? regards, tom lane