Re: BUG #19745: tsquery input: 33 nested "!" raise XX000 via elog(), escaping pg_input_is_valid()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: kehan5800(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19745: tsquery input: 33 nested "!" raise XX000 via elog(), escaping pg_input_is_valid()
Date: 2026-10-05 19:02:02
Message-ID: 1092466.1791226922@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2026-10-05 21:34:46 Re: BUG #19747: pg_dump does not pin array_nulls, so restore mangles NULL array elements
Previous Message Tom Lane 2026-10-05 18:48:11 Re: BUG #19748: tsvectorrecv accepts duplicate lexemes and position 0 that tsvectorin rejects