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 1xDnwx-00000000ipo-1hSj for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Oct 2026 19:02:11 +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 1xDnwu-0000000CVL5-3X04 for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Oct 2026 19:02:08 +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.98.2) (envelope-from ) id 1xDnwu-0000000CVKw-2SaE for pgsql-bugs@lists.postgresql.org; Mon, 05 Oct 2026 19:02:08 +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.98.2) (envelope-from ) id 1xDnws-00000000Zsx-0rt9 for pgsql-bugs@lists.postgresql.org; Mon, 05 Oct 2026 19:02:08 +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 695J22BS1092467; Mon, 5 Oct 2026 15:02:03 -0400 From: Tom Lane To: kehan5800@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19745: tsquery input: 33 nested "!" raise XX000 via elog(), escaping pg_input_is_valid() In-reply-to: <19745-39cd7b93a505f9a9@postgresql.org> References: <19745-39cd7b93a505f9a9@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Sun, 04 Oct 2026 05:17:04 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1092465.1791226922.1@sss.pgh.pa.us> Date: Mon, 05 Oct 2026 15:02:02 -0400 Message-ID: <1092466.1791226922@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: > makepol() in src/backend/utils/adt/tsquery.c keeps a fixed operator stack > (STACKDEPTH = 32, tsquery.c:627), and pushOpStack() reports overflow as an > internal error: Hmm. I'm not terribly concerned by which SQLSTATE gets reported, but I do agree that it's bad that this isn't trappable as a soft error. Will fix, thanks for report. regards, tom lane