From: Tom Lane <tgl@sss.pgh.pa.us>
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()
Date: Mon, 05 Oct 2026 15:02:02 -0400
Message-ID: <1092466.1791226922@sss.pgh.pa.us> (raw)
In-Reply-To: <19745-39cd7b93a505f9a9@postgresql.org>
References: <19745-39cd7b93a505f9a9@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, kehan5800@gmail.com
Subject: Re: BUG #19745: tsquery input: 33 nested "!" raise XX000 via elog(), escaping pg_input_is_valid()
In-Reply-To: <1092466.1791226922@sss.pgh.pa.us>
References: <19745-39cd7b93a505f9a9@postgresql.org> <1092466.1791226922@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox