This commit is contained in:
Cachuela 2023-09-26 08:58:15 +08:00
parent a653b1fbe0
commit 352d38eaf6
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ void build_base_rel_tlists(PlannerInfo* root, List* final_tlist)//函数用于
void add_vars_to_targetlist(PlannerInfo* root, List* vars, Relids where_needed, bool create_new_ph)
{
ListCell* temp = NULL;
// 断言 where_needed 不应为空<E4B8BA><E7A9BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>它表示需要这些变量的关系的集合。
// 断言 where_needed 不应为空<E4B8BA><E7A9BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>它表示需要这些变量的关系的集合。
AssertEreport(!bms_is_empty(where_needed), MOD_OPT, "bms should not be null");
foreach (temp, vars) {// 遍历传入的变量列表。
@ -237,7 +237,7 @@ extract_lateral_references(PlannerInfo *root, RelOptInfo *brel, Index rtindex)
RangeTblEntry *rte = root->simple_rte_array[rtindex];// 获取与基本关系对应的 RangeTblEntry。
List *vars = NIL;// 存储原始变量引用的列表
List *newvars = NIL;// 存储处理后的变量引用的列表
Relids where_needed = NULL;// 标识哪些关系需要这些<EFBFBD><EFBFBD><EFBFBD>
Relids where_needed = NULL; // 标识哪些关系需要<EFBFBD><EFBFBD><EFBFBD>些变
ListCell *lc = NULL;
/* No cross-references are possible if it's not LATERAL */