add openGauss 3.1.0 feature code

This commit is contained in:
yanghao
2022-09-03 16:22:35 +08:00
parent 801d945a3d
commit b919f404e8
2759 changed files with 521358 additions and 366321 deletions

View File

@ -207,12 +207,8 @@ TupleTableSlot* ExecRecursiveUnion(RecursiveUnionState* node)
slot = isSW ? ConvertRuScanOutputSlot(node, slot, false) : slot;
swSlot = isSW ? GetStartWithSlot(node, slot) : NULL;
if (isSW && swSlot == NULL) {
/*
* SWCB terminal condition met. Time to stop.
* Discarding the last tuple.
*/
markSWLevelEnd(node->swstate, node->swstate->sw_numtuples - 1);
break;
/* Not satisfy connect_by_level_qual,skip this tuple */
continue;
}
/* Each non-duplicate tuple goes to the working table ... */
@ -392,12 +388,8 @@ TupleTableSlot* ExecRecursiveUnion(RecursiveUnionState* node)
slot = ConvertRuScanOutputSlot(node, slot, true);
swSlot = GetStartWithSlot(node, slot);
if (isSW && swSlot == NULL) {
/*
* SWCB terminal condition met. Time to stop.
* Discarding the last tuple.
*/
markSWLevelEnd(node->swstate, node->swstate->sw_numtuples - 1);
break;
/* Not satisfy connect_by_level_qual,skip this tuple */
continue;
}
/*