Amin <amin.fallahi@gmail.com> writes:
> I made sure EXPLAIN returns CustomScan for all scans in the query. But
> still, ExecCustomScan is only called once while the rest of the functions
> are called for each scan separately. Is this expected behavior? How to work
> around this?
[shrug...] There's some bug in your code, which you've not shown us
(not that I'm volunteering to review it in any detail).
regards, tom lane