[PATCH] support ROWNUM in openGauss

Signed-off-by: pufuan <pu.fuan@139.com>
This commit is contained in:
pufuan
2020-07-25 14:11:19 +08:00
parent 33fb785204
commit b70b84d144
28 changed files with 774 additions and 18 deletions

View File

@ -560,6 +560,8 @@ PlanState* ExecInitNode(Plan* node, EState* e_state, int e_flags)
/* restore the per query context */
e_state->es_query_cxt = query_context;
result->ps_rownum = 0;
gstrace_exit(GS_TRC_ID_ExecInitNode);
return result;
}
@ -743,6 +745,8 @@ TupleTableSlot* ExecProcNode(PlanState* node)
MemoryContextSwitchTo(old_context);
node->ps_rownum++;
return result;
}