删除InitAGESqlPluginHookIfNeeded

This commit is contained in:
liuy
2024-05-28 09:40:00 +08:00
committed by yaoxin
parent 0b9cfa1ad2
commit 5b779f6fef

View File

@ -973,14 +973,6 @@ bool IsFileExisted(const char *filename)
return file_exists(fullname);
}
#define APACEH_AGE "age"
void InitAGESqlPluginHookIfNeeded()
{
if (get_extension_oid(APACEH_AGE, true) != InvalidOid && IsFileExisted(APACEH_AGE)) {
load_file(APACEH_AGE, !superuser());
}
}
#define INIT_PLUGIN_OBJECT "init_plugin_object"
#define WHALE "whale"
#define DOLPHIN "dolphin"
@ -7739,11 +7731,6 @@ void LoadSqlPlugin()
} else if (u_sess->proc_cxt.MyDatabaseId != InvalidOid && DB_IS_CMPT(A_FORMAT) && u_sess->attr.attr_sql.whale) {
InitASqlPluginHookIfNeeded();
}
/* load age if the age extension been created and the age.o file exists */
if(u_sess->proc_cxt.MyDatabaseId != InvalidOid ){
InitAGESqlPluginHookIfNeeded();
}
}
#endif