Andrei Lepikhov <lepihov(at)gmail(dot)com> writes:
> The problem here is in the scrollable cursors code which inserts
> Material node:
Yeah, I'd just come to the same conclusion. I guess we can make
this code look through a Material node as well as Gather.
regards, tom lane