14 Star 41 Fork 83

openGauss / community

 / 详情

2.1.0版本“Schema设计”内容描述有误

待办的
缺陷
创建于  
2022-12-04 17:25

【标题描述】:2.1.0版本“Schema设计”内容描述有误
【测试类型:资料】
【测试版本:2.1.0】

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):

【测试环境】(单机/1主x备x级联备):

【被测功能】:

【测试类型】:

【数据库版本】2.1.0:

【预置条件】:

【操作步骤】(请填写详细的操作步骤):

  1. 资料上写
    【关注】如果要在Schema下创建对象,需要授予操作用户该Schema的create权限。
  2. 实际操作:
    2.1 创建用户a,创建用户b;
    2.2 给用户b赋予schema a的create的权限;
    2.3 使用b在schema a下面创建表;
    【预期输出】:
    可以创建成功;
    【实际输出】:
    报错:SQL错误码: = 42501
    ERROR: current user does not have privilege to role teacher_li
    行号: 2
    【原因分析】:
  3. 和其他人交流及查询资料,发现用户同名的schema,以及在创建的时候带AUTHORIZATION,则需要把role a赋给用户b,用户b才能在schema a下面创建对象。建议修改资料描述,补充全schema场景。

【日志信息】(请附上日志文件、截图、coredump信息):

【测试代码】:

评论 (3)

赵峰 创建了缺陷

Hey @赵峰, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

Hi @赵峰,
if you want to get quick review about your issue, please contact the owner in first: @xiangxinyong ,
and then any of the maintainers: @zhongjun2
and then any of the committers: @xiangxinyong , @zhangxubo , @ZhengyuhangHans , @ailoooong
if you have any question, please contact the SIG: Infra.

opengauss-bot 添加了
 
sig/infra
标签
yansong_lee 负责人设置为liyang

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5622128 opengauss bot 1581905080
1
https://gitee.com/opengauss/community.git
git@gitee.com:opengauss/community.git
opengauss
community
community

搜索帮助

53164aa7 5694891 3bd8fe86 5694891