On Fri, Aug 28, 2026 at 2:02 PM David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
> I also think the one reported here is slightly worse due to the
> behaviour depending on the number of pruned partitions.
Agreed, and I think you are right about the other two being consistent
in a way this one is not. This one only misbehaviors when a single
child survives, so the same query can honour enable_indexscan=off or
not depending on how many partitions are pruned.
I've pushed this patch and back-patched it to v18. (I have a typo in
my previous email saying this is a v17 regression, but it should be
v18).
- Richard