Re: BUG #18356: Casting values from jsonb_each_text does not respect WHERE filter with sub select

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ed Herrmann <ewherrmann(at)gmail(dot)com>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18356: Casting values from jsonb_each_text does not respect WHERE filter with sub select
Date: 2024-02-21 20:56:24
Message-ID: 140973.1708548984@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Ed Herrmann <ewherrmann(at)gmail(dot)com> writes:
> This example does not cause the same error and returns results as expected.
> If it has to do with the execution plan as Laurenz suggested, do you have a
> suggestion on how to better create a self-contained example where it would
> behave more like an actual table select to get the desired list of keys?

Do an EXPLAIN on the problem query, and then try to make an example
with no private data that shows the same plan.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Munro 2024-02-21 21:30:41 Re: DSA_ALLOC_NO_OOM doesn't work
Previous Message Ed Herrmann 2024-02-21 20:51:21 Re: BUG #18356: Casting values from jsonb_each_text does not respect WHERE filter with sub select