新建角色python:可以登陆,继承权限
CREATE role python WITH LOGIN ENCRYPTED PASSWORD '111111';
新建模式temp,给python用户存放临时表
CREATE SCHEMA temp;
grant all on schema temp to python;
grant create on schema temp to python;
grant usage on schema temp to python;
将gpadmin创建的表,授权给python
grant select on glfmwdkz to python;

python用户登陆后使用表(public模式下只读,temp可以读写):
create table temp.g1(like glfmwdkz);
insert into temp.g1 select * from glfmwdkz;

相关文章:

  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2021-12-24
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2021-05-27
  • 2021-08-26
  • 2021-11-23
  • 2021-08-20
相关资源
相似解决方案