Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xTOPZ-00000000InL-2pbw for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Nov 2026 19:00:10 +0000 Received: from localhost ([127.0.0.1]:45444 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xTOPX-00000006ekA-2YmT for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Nov 2026 19:00:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]:50232) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xTOPX-00000006ek0-1QMI for pgsql-bugs@lists.postgresql.org; Tue, 17 Nov 2026 19:00:07 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1xTOPU-00000000Bq1-35yC for pgsql-bugs@lists.postgresql.org; Tue, 17 Nov 2026 19:00:06 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-3ae0a5c1715so12835041fa.1 for ; Tue, 17 Nov 2026 11:00:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794942003; x=1795546803; darn=lists.postgresql.org; h=in-reply-to:cc:content-language:from:references:to:subject :user-agent:mime-version:date:message-id:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=8dzzlQz4E8cFinDKUY5Uq+ORCqWJgc47QMkDR2sDwqA=; b=FWsTD4QRk+Jf+9lVcUydlCzAiPrGE6N+3D/ua2O9fThfgRjlPS8UDobkC4MOIAzWk5 fweX5VIcCCDjA9A/UoHA1lVsX6+74uNx+yRH6uD5cxQYW7c66l0nU1eTTDD9nFt27bEW UX07wPKrwFDUPlkRJHJT3ITYkXq/mi+rNnV6Xhts5cMXJj9prIu6ysA3xeoD/gNvEtym hpkvJ0yjEn//nwIIqHLwk7CiIi4NOcY/2+thI/mo7Fw5k9HvJe4lU1NTVeK8+VxlPzsE HYMSlUtL2U5m6draksngxV+fHRIMmF6tHL9lIe1l6dsZhLttVoX/SBkLbHcWSuMzeLW7 w2ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794942003; x=1795546803; h=in-reply-to:cc:content-language:from:references:to:subject :user-agent:mime-version:date:message-id:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=8dzzlQz4E8cFinDKUY5Uq+ORCqWJgc47QMkDR2sDwqA=; b=PXNLMPLmVieLw0Nkzb9DQZyE0k+jdua3esBggwnDFcGHFG2pO8JGyJLSqZWOFXRerh DRKaz5IrlGXTpeSs2SWx9Z9QQeu/DTFbg/5vbMOOpqnIPrZzawoWem+PY1zi2T5CwhfF pV+ME702LQhL17kOhtMWkyWp0wgBI+pIP38inN31OfGKnaX+fv1OFVnLJvxQPma4cooT oW/FMBjMwgzgi7FdbnESc+TqtX3uGxV0I8an4gwzAY8IJ+N5AXcVZHcYIvokbBaZRKdJ te52zJXm5/urJkCMZAALqT8k4yma/HtKVOiSI74APpCAzne8oGLKCQtghfb5eIk1xpdW YgMg== X-Gm-Message-State: APuU4Z9BSb7TnpZGKv0nn4o5T3tChUt4wn/P4vL6WDMMbADhAIg4NG+9 BlQavsSk5bb/ZaJzaxkYRp5ezHU00fqnCKFLj7ozuNdEtKc+5fMb8Lr+ X-Gm-Gg: AYBFou2uhGgfqqR8PTfu6x26skEMqJZmI+v5Z6dscgosaPdxPIYdHYXJHItS8Q/77wB oiBt6dKIDR8wRZnLPGqp73P8HkaOcJNJMEkqLzi5BeQH7fFM0D+rDaRcJrKymsP6EGy8hLqc9qD XTflmdDYMA5N96qgj2NOsDlKgXB5SNPfsECS3oKCQ4Bher2yDS/+daBfLYyPUdg4QYHr+9NLccy gM4HIwRe6RjZRCXdWOEFlOBJsZMQRPOo472jlF5NUI6wGmOiCx5lcPuLIihz1c79Q3rawpm5zzd eBVUecjVw51csdl948Ve8RV9tHwfcBNnXbFoyhsoZ9qHDvXWhRlCt3XfrEj3RtbDQUOtpLnt873 WV1hovv/FFCUt6A022M8dbNkB+4dGikbEg16J69X9XK0CU0ywO4fxgufMJpYMFtLHUhvIkQ6MBT QOfuKKq+AwKaIDnvnSpeFN7PFeEbS/hxYxg44Ga4lgHWPuzy7gqZuyNwOjls0jrOk+UabJ5P9OQ 0wZFFaCbqvo5F7O7qxB0elz92AsHAEBfdC++fNhUdr3Za4q4ro8GSjIO2Dxq83Y82ebyJHYm454 CCE2nxq4A2U/ycRwTwapgMTDpKUe+w== X-Received: by 2002:a05:651c:199f:b0:3ab:2c09:44a with SMTP id 38308e7fff4ca-3ae5cc3808bmr10319211fa.25.1794942003176; Tue, 17 Nov 2026 11:00:03 -0800 (PST) Received: from [192.168.0.50] ([89.149.93.246]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3ae2b7ae914sm45515881fa.26.2026.11.17.11.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Nov 2026 11:00:02 -0800 (PST) Content-Type: multipart/alternative; boundary="------------u0RNCR1hey5Efr4da98402sR" Message-ID: Date: Tue, 17 Nov 2026 21:00:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BUG #19910: json(b)_to_tsvector() nested array filter gives internal error XX000 "unexpected end of flag array" To: hackerzheng666@gmail.com, Tom Lane References: <19910-24199f8af1474753@postgresql.org> From: Alexander Lakhin Content-Language: en-US Cc: pgsql-bugs@lists.postgresql.org In-Reply-To: <19910-24199f8af1474753@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------u0RNCR1hey5Efr4da98402sR Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello Zheng and Tom, 17.11.2026 07:03, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 19910 > Logged by: Zheng Hacker > ... > select jsonb_to_tsvector('english'::regconfig, '{"a":"b c"}'::jsonb, > '[[1]]'::jsonb); > ERROR: XX000: unexpected end of flag array > LOCATION: parse_jsonb_index_flags, jsonfuncs.c:5643 FWIW, I also reported this before: https://www.postgresql.org/message-id/f2758799-b7c1-4baf-8593-8899802cf48c%40gmail.com Maybe other internal errors from that thread worth fixing too... Best regards, Alexander --------------u0RNCR1hey5Efr4da98402sR Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Hello Zheng and Tom,

17.11.2026 07:03, PG Bug reporting form wrote:
The following bug has been logged on the website:

Bug reference:      19910
Logged by:          Zheng Hacker
...
select jsonb_to_tsvector('english'::regconfig, '{"a":"b c"}'::jsonb,
'[[1]]'::jsonb);
ERROR:  XX000: unexpected end of flag array
LOCATION:  parse_jsonb_index_flags, jsonfuncs.c:5643

FWIW, I also reported this before:
https://www.postgresql.org/message-id/f2758799-b7c1-4baf-8593-8899802cf48c%40gmail.com

Maybe other internal errors from that thread worth fixing too...

Best regards,
Alexander
--------------u0RNCR1hey5Efr4da98402sR--