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