autovacuum worker should load dolphin.

This commit is contained in:
totaj
2024-02-07 09:55:24 +08:00
parent 756c4f7b5d
commit fad409334e
3 changed files with 7 additions and 1 deletions

View File

@ -1685,6 +1685,8 @@ void PostgresInitializer::InitAutoVacWorker()
InitSettings();
InitExtensionVariable();
FinishInit();
}

View File

@ -1355,6 +1355,10 @@ NON_EXEC_STATIC void AutoVacWorkerMain()
pgstat_report_appname("AutoVacWorker");
pgstat_report_activity(STATE_IDLE, NULL);
#if (!defined(ENABLE_MULTIPLE_NODES)) && (!defined(ENABLE_PRIVATEGAUSS))
LoadSqlPlugin();
#endif
set_ps_display(dbname, false);
ereport(GetVacuumLogLevel(), (errmsg("start autovacuum on database \"%s\"", dbname)));

View File

@ -212,7 +212,7 @@ static_assert(sizeof(NULL) == sizeof(void*), "NULL must be a 8 byte-length point
#define CUR_THR_IS_WORKER() (t_thrd.role == WORKER || t_thrd.role == THREADPOOL_WORKER ||\
t_thrd.role == STREAM_WORKER || t_thrd.role == THREADPOOL_STREAM || t_thrd.role == WAL_DB_SENDER||\
t_thrd.role == PARALLEL_DECODE || t_thrd.role == JOB_WORKER)
t_thrd.role == PARALLEL_DECODE || t_thrd.role == JOB_WORKER || t_thrd.role == AUTOVACUUM_WORKER)
#if (!defined(ENABLE_MULTIPLE_NODES)) && (!defined(ENABLE_PRIVATEGAUSS))
/* for dolphin and whale plugin */