![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LIB
fgh431
非淡泊无以明志
展开
-
NLJ的新代码(1)
这定义了 是否启动DBLIB_ENABLED 输入和输出的SLOTS的数量 以及属性个数 #include "executor/execExpr.h" #define DBLIB_ENABLED 0 #define DBLIB_OUTPUTSLOTS_NUM 500000 #define DBLIB_INPUTSLOTS_NUM 500000 #define DBLIB_ATTR_NUM ...原创 2019-06-13 15:26:48 · 571 阅读 · 0 评论 -
NLJ的新代码(2)
if (DBLIB_ENABLED) { /* * we execute join only when it's the first loop, so this number * indicates the number of loop. */ static int dblib_nestloop_num = 0; static TupleTableSlot *dblib...原创 2019-06-13 15:26:30 · 538 阅读 · 0 评论 -
NLJ的新代码(3)
下面的函数运行后在dblib_output_qual_index里得到了成对成对的搭配好的index!! /* * execute join and calculate result slots */ dblib_output_index_col = DblibNestLoopJoin(dblib_output_qual_index, dblib_input_out...原创 2019-06-13 15:04:40 · 491 阅读 · 0 评论 -
new NLJ全部代码
static TupleTableSlot * ExecNestLoop(PlanState *pstate) { NestLoopState *node = castNode(NestLoopState, pstate); NestLoop *nl; PlanState *innerPlan; PlanState *outerPlan; TupleTableSlot *oute...原创 2019-09-06 13:54:52 · 251 阅读 · 0 评论 -
另起炉灶写的nodeNestloop_new.c文件中
要注意在最后加上return NULL哦,否则一些操作可能异常。 例如\d haha 会用到nestloop,按照我们写的话这个还不支持,所以会出错哦。原创 2019-06-28 17:57:32 · 215 阅读 · 0 评论