greenplum下schema的使用


新建角色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;


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM