Re: Retrieving Alias Name

2019-02-26 Thread Julien Rouhaud
On Tue, Feb 26, 2019 at 10:48 PM Walter Cai wrote: > > I'm currently using a (very rough) scheme to retrieve relation names from a > PlannerInfo, and a RelOptInfo struct: > > PlannerInfo *root > RelOptInfo *inner_rel > > //... > > RangeTblEntry *rte; > int x = -1; > while ((x = bms_next_member(in

Retrieving Alias Name

2019-02-26 Thread Walter Cai
Hi, I'm currently using a (very rough) scheme to retrieve relation names from a PlannerInfo, and a RelOptInfo struct: PlannerInfo *root RelOptInfo *inner_rel //... RangeTblEntry *rte; int x = -1; while ((x = bms_next_member(inner_rel->relids, x)) >= 0) { rte = root->simple_rte_array[x];