Robert Haas <robertmhaas@gmail.com> writes:
>> Foreign tables are supposed to be categorically excluded from
>> parallelism. Not sure why that's not working in this instance.
BTW, I wonder where you think that's supposed to be enforced, because
I sure can't find any such logic.
I suppose that has_parallel_hazard() would be the logical place to
notice foreign tables, but it currently doesn't even visit RTEs,
much less contain any code to check if their tables are foreign.
Or did you have another place in mind to do that?
regards, tom lane