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

From Tom Lane
Subject Re: BUG #19745: tsquery input: 33 nested "!" raise XX000 via elog(), escaping pg_input_is_valid()
Date
Msg-id 1092466.1791226922@sss.pgh.pa.us
Whole thread
In response to BUG #19745: tsquery input: 33 nested "!" raise XX000 via elog(), escaping pg_input_is_valid()  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
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



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #19748: tsvectorrecv accepts duplicate lexemes and position 0 that tsvectorin rejects
Next
From: Tom Lane
Date:
Subject: Re: BUG #19747: pg_dump does not pin array_nulls, so restore mangles NULL array elements