David Rowley <dgrowleyml(at)gmail(dot)com> writes:
> On Wed, 21 Jul 2021 at 11:25, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Uh .... it's not the "exact same bitmap each time", because the selected
>> rows vary depending on the value of g.i.
> I imagined Jeff was meaning the bitmap from the scan of foo_x_idx, not
> the combined ANDed bitmap from both indexes.
To re-use that, you'd need a way to prevent the upper node from
destructively modifying the tidbitmap.
regards, tom lane