support smp cursor

This commit is contained in:
chenxiaobin19
2024-06-28 16:10:52 +08:00
parent 3a3e54a07a
commit 65da7e14f4
13 changed files with 106 additions and 33 deletions

View File

@ -1069,6 +1069,13 @@ void BuildStreamFlow(PlannedStmt* plan)
u_sess->stream_cxt.global_obj = New(u_sess->stream_cxt.stream_runtime_mem_cxt) StreamNodeGroup();
u_sess->stream_cxt.global_obj->m_streamRuntimeContext = u_sess->stream_cxt.stream_runtime_mem_cxt;
#ifndef ENABLE_MULTIPLE_NODES
if (StreamTopConsumerAmI() && ActivePortal != NULL) {
ActivePortal->streamInfo.RecordSessionInfo();
u_sess->stream_cxt.global_obj->m_portal = ActivePortal;
}
#endif
StreamFlowCtl ctl;
ctl.pstmt = plan;
ctl.plan = plan->planTree;