Re: Access root->simple_rte_array instead of Query->rtable for 2 more cases.

2021-05-25 Thread Tom Lane
Andy Fan writes: > When I am understanding the relationship between Query->rtable and > root->simple_rte_array, I'd like to assume that Query->rtable should be > never used > when root->simple_rte_array is ready. TBH, now that Lists are really arrays, there's basically no performance advantage to

Access root->simple_rte_array instead of Query->rtable for 2 more cases.

2021-05-25 Thread Andy Fan
When I am understanding the relationship between Query->rtable and root->simple_rte_array, I'd like to assume that Query->rtable should be never used when root->simple_rte_array is ready. I mainly checked two places, make_one_rel and create_plan with the below hacks. { List *l = root->parse->rta