Re: Assertion failure when importing expression statistics with nested JSON values

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Ilia Evdokimov <ilya(dot)evdokimov(at)tantorlabs(dot)com>
Cc: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Assertion failure when importing expression statistics with nested JSON values
Date: 2026-11-04 01:59:01
Message-ID: auqRZeB032_EiHlB@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 03, 2026 at 07:56:51PM +0900, Michael Paquier wrote:
> Yep, setting skipNested=true may be the right move here. I'll check
> all that tomorrow.

Spent some time with my HEAD down on this one, and this is indeed a
good find. The two other callers of JsonbIteratorNext() in this file
are actually safe due to the fact that we should have a jbvString. I
have tweaked a bit one comment, added one test based on what you have
sent as it is cheap enough to have, and applied the result down to
v19.

Thanks for the report, Ilia!
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-11-04 02:29:10 Re: [PATCH v1] Free oversized decoded WAL records in XLogReaderFree()
Previous Message Koshino Taiki 2026-11-04 01:24:13 [PATCH v1] psql: Do not complete HEADER MATCH for COPY TO