Amit Langote <langote_amit...@lab.ntt.co.jp> writes: > 0002 is a new patch to get rid of the duplicate RTE and PlanRowMark that's > created for partitioned parent table, as it's pointless. I was planning > to propose it later, but decided to post it now if we're modifying the > nearby code anyway.
Good idea, but it needs a bit more work on nearby comments, and the logic in expand_single_inheritance_child could be simplified, and you evidently didn't try check-world because the RTE-removal causes cosmetic changes in postgres_fdw.out. I fixed that up and pushed this part. regards, tom lane