Re: BUG #19910: json(b)_to_tsvector() nested array filter gives internal error XX000 "unexpected end of flag array"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hackerzheng666(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19910: json(b)_to_tsvector() nested array filter gives internal error XX000 "unexpected end of flag array"
Date: 2026-11-17 15:41:01
Message-ID: 396124.1794930061@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:
> A filter argument that contains a nested array is rejected with an
> internal-error message (SQLSTATE XX000, raised by elog) instead of the
> invalid_parameter_value error that every other bad filter gets:

Hmm, yeah. The tests in this code are actually correct, but not
a lot of thought was put into the error messages. Need something
like the attached. (I think the last elog() call is indeed
unreachable, but maybe I'm wrong?)

regards, tom lane

Attachment Content-Type Size
draft-fix-jsonb-flag-parsing.patch text/x-diff 3.0 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2026-11-17 16:34:18 Re: BUG #19906: Backend crash (signal 11) creating a LANGUAGE sql function that returns a composite type from a sub-
Previous Message Nisha Moond 2026-11-17 15:32:59 Re: BUG #19892: Logical replication skips UPDATE/DELETE of rows with NULL in a hash-indexed subscriber column