forked from huawei/openGauss-server
Compare commits
4 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
c6cf59f29f | |
|
|
a5410b7f86 | |
|
|
c711c7dc5f | |
|
|
3bea35e8c1 |
|
|
@ -47,7 +47,8 @@ static void InternalAggIsSupported(const char *aggName)
|
||||||
"json_agg",
|
"json_agg",
|
||||||
"json_object_agg",
|
"json_object_agg",
|
||||||
"st_summarystatsagg",
|
"st_summarystatsagg",
|
||||||
"st_union"
|
"st_union",
|
||||||
|
"wm_concat"
|
||||||
};
|
};
|
||||||
|
|
||||||
uint len = lengthof(supportList);
|
uint len = lengthof(supportList);
|
||||||
|
|
|
||||||
|
|
@ -827,9 +827,6 @@ void InitBSqlPluginHookIfNeeded()
|
||||||
{
|
{
|
||||||
const char* b_sql_plugin = "b_sql_plugin";
|
const char* b_sql_plugin = "b_sql_plugin";
|
||||||
CFunInfo tmpCF;
|
CFunInfo tmpCF;
|
||||||
if (!CheckIfExtensionExists(b_sql_plugin)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
tmpCF = load_external_function(b_sql_plugin, INIT_PLUGIN_OBJECT, false, false);
|
tmpCF = load_external_function(b_sql_plugin, INIT_PLUGIN_OBJECT, false, false);
|
||||||
if (tmpCF.user_fn != NULL) {
|
if (tmpCF.user_fn != NULL) {
|
||||||
|
|
@ -7572,7 +7569,7 @@ int PostgresMain(int argc, char* argv[], const char* dbname, const char* usernam
|
||||||
init_set_params_htab();
|
init_set_params_htab();
|
||||||
|
|
||||||
#ifndef ENABLE_MULTIPLE_NODES
|
#ifndef ENABLE_MULTIPLE_NODES
|
||||||
if (u_sess->proc_cxt.MyDatabaseId != InvalidOid && DB_IS_CMPT(B_FORMAT)) {
|
if (u_sess->proc_cxt.MyDatabaseId != InvalidOid && DB_IS_CMPT(B_FORMAT) && u_sess->attr.attr_sql.b_sql_plugin) {
|
||||||
InitBSqlPluginHookIfNeeded();
|
InitBSqlPluginHookIfNeeded();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -848,7 +848,7 @@ static bool InitSession(knl_session_context* session)
|
||||||
t_thrd.proc_cxt.PostInit->InitSession();
|
t_thrd.proc_cxt.PostInit->InitSession();
|
||||||
|
|
||||||
#ifndef ENABLE_MULTIPLE_NODES
|
#ifndef ENABLE_MULTIPLE_NODES
|
||||||
if (u_sess->proc_cxt.MyDatabaseId != InvalidOid && DB_IS_CMPT(B_FORMAT)) {
|
if (u_sess->proc_cxt.MyDatabaseId != InvalidOid && DB_IS_CMPT(B_FORMAT) && u_sess->attr.attr_sql.b_sql_plugin) {
|
||||||
InitBSqlPluginHookIfNeeded();
|
InitBSqlPluginHookIfNeeded();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue