fixed d0a6bc0 from https://gitee.com/lilongfei15/openGauss-server/pulls/4235
修复创建索引失败导致安全模式没有推出造成无法创建临时表
This commit is contained in:
@ -814,6 +814,7 @@ ObjectAddress DefineIndex(Oid relationId, IndexStmt* stmt, Oid indexRelationId,
|
|||||||
(errcode(ERRCODE_DUPLICATE_TABLE),
|
(errcode(ERRCODE_DUPLICATE_TABLE),
|
||||||
errmsg("relation \"%s\" already exists, skipping", stmt->idxname)));
|
errmsg("relation \"%s\" already exists, skipping", stmt->idxname)));
|
||||||
heap_close(rel, NoLock);
|
heap_close(rel, NoLock);
|
||||||
|
SetUserIdAndSecContext(root_save_userid, root_save_sec_context);
|
||||||
return address;
|
return address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user