fixed 8d4fb81 from https://gitee.com/totaj/openGauss-server/pulls/3956
Must load dolphin before connect to B-database.
This commit is contained in:
@ -7601,8 +7601,8 @@ void LoadSqlPlugin()
|
||||
if (!u_sess->attr.attr_sql.dolphin && !u_sess->attr.attr_common.IsInplaceUpgrade) {
|
||||
Oid userId = GetUserId();
|
||||
if (userId != INITIAL_USER_ID) {
|
||||
ereport(WARNING, (errmsg("Use the original role to load extension dolphin")));
|
||||
return;
|
||||
ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
errmsg("Please use the original role to connect B-compatibility database first, to load extension dolphin")));
|
||||
}
|
||||
/* recheck and load dolphin within lock */
|
||||
pthread_mutex_lock(&g_instance.loadPluginLock[DB_CMPT_B]);
|
||||
|
||||
Reference in New Issue
Block a user