!3169 applyworker和stream线程需要加载插件

Merge pull request !3169 from pengjiong/fix_date
This commit is contained in:
opengauss-bot
2023-03-20 01:50:35 +00:00
committed by Gitee
2 changed files with 7 additions and 0 deletions

View File

@ -2238,6 +2238,10 @@ void PostgresInitializer::InitStreamSession()
InitExtensionVariable();
FinishInit();
#if (!defined(ENABLE_MULTIPLE_NODES)) && (!defined(ENABLE_PRIVATEGAUSS))
LoadSqlPlugin();
#endif
}
void PostgresInitializer::InitSysCache()

View File

@ -1511,6 +1511,9 @@ void ApplyWorkerMain()
t_thrd.proc_cxt.PostInit->InitApplyWorker();
pgstat_report_appname("ApplyWorker");
pgstat_report_activity(STATE_IDLE, NULL);
#if (!defined(ENABLE_MULTIPLE_NODES)) && (!defined(ENABLE_PRIVATEGAUSS))
LoadSqlPlugin();
#endif
/* Load the subscription into persistent memory context. */
t_thrd.applyworker_cxt.applyContext =