当前位置:网站首页>Gbase 8C create user / role example 2
Gbase 8C create user / role example 2
2022-07-03 02:22:00 【Dazhuang twelve】
6、 Create a copy account :repl
gbase=# CREATE USER repl REPLICATION LOGIN ENCRYPTED PASSWORD 'repl';
CREATE ROLE
7、 Other instructions
GRANT { { SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES | TRIGGER }
[, ...] | ALL [ PRIVILEGES ] }
ON { [ TABLE ] table_name [, ...]
| ALL TABLES IN SCHEMA schema_name [, ...] }
TO role_specification [, ...] [ WITH GRANT OPTION ]
## Single table Authorization : to grant authorization zjy The account can be accessed schema by zjy Of zjy surface grant select,insert,update,delete on zjy.zjy to zjy;
## All forms authorized :grant select,insert,update,delete on all tables in schema zjy to zjy;
GRANT { { SELECT | INSERT | UPDATE | REFERENCES } ( column_name [, ...] )
[, ...] | ALL [ PRIVILEGES ] ( column_name [, ...] ) }
ON [ TABLE ] table_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
## Column Authorization , Authorize the specified column (zjy schema Under the zjy Tabular name Column ) The update permission of is given to zjy user grant update (name) on zjy.zjy to zjy;
## The specified column grants different permissions ,zjy schema Under the zjy surface , Check for updates name、age Field , Insert name Field grant select (name,age),update (name,age),insert(name) on zjy.xxx to zjy;
GRANT { { USAGE | SELECT | UPDATE }
[, ...] | ALL [ PRIVILEGES ] }
ON { SEQUENCE sequence_name [, ...]
| ALL SEQUENCES IN SCHEMA schema_name [, ...] }
TO role_specification [, ...] [ WITH GRANT OPTION ]
## Sequence ( Self increasing bond ) Property Authorization , Appoint zjy schema Under the seq_id_seq to zjy user grant select,update on sequence zjy.seq_id_seq to zjy;
## Sequence ( Self increasing bond ) Property Authorization , To the user zjy to grant authorization zjy schema All the sequences below grant select,update on all sequences in schema zjy to zjy;
GRANT { { CREATE | CONNECT | TEMPORARY | TEMP } [, ...] | ALL [ PRIVILEGES ] }
ON DATABASE database_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
## Access to database , to grant authorization cc Users connect to the database zjygrant connect on database zjy to cc;
GRANT { USAGE | ALL [ PRIVILEGES ] }
ON DOMAIN domain_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { USAGE | ALL [ PRIVILEGES ] }
ON FOREIGN DATA WRAPPER fdw_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { USAGE | ALL [ PRIVILEGES ] }
ON FOREIGN SERVER server_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { EXECUTE | ALL [ PRIVILEGES ] }
ON { { FUNCTION | PROCEDURE | ROUTINE } routine_name [ ( [ [ argmode ] [ arg_name ] arg_type [, ...] ] ) ] [, ...]
| ALL { FUNCTIONS | PROCEDURES | ROUTINES } IN SCHEMA schema_name [, ...] }
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { USAGE | ALL [ PRIVILEGES ] }
ON LANGUAGE lang_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { { SELECT | UPDATE } [, ...] | ALL [ PRIVILEGES ] }
ON LARGE OBJECT loid [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { { CREATE | USAGE } [, ...] | ALL [ PRIVILEGES ] }
ON SCHEMA schema_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
## Connect schema jurisdiction , to grant authorization cc visit zjy schema jurisdiction grant usage on schema zjy to cc;
GRANT { CREATE | ALL [ PRIVILEGES ] }
ON TABLESPACE tablespace_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { USAGE | ALL [ PRIVILEGES ] }
ON TYPE type_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
where role_specification can be:
[ GROUP ] role_name
| PUBLIC
| CURRENT_USER
| SESSION_USER
GRANT role_name [, ...] TO role_name [, ...] [ WITH ADMIN OPTION ]
## hold zjy The user's rights are granted to the user cc.
grant zjy to cc;
边栏推荐
- 单词单词单词
- GBase 8c系统表pg_cast
- 【CodeForces】CF1338A - Powered Addition【二进制】
- GBase 8c 函数/存储过程参数(一)
- [Yu Yue education] reference materials of chemical experiment safety knowledge of University of science and technology of China
- Socket programming
- awk从入门到入土(1)awk初次会面
- 通达OA 首页门户工作台
- 通达OA v12流程中心
- Current situation and future of Web3 in various countries
猜你喜欢

Trial setup and use of idea GoLand development tool

easyPOI
![[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)](/img/66/0fda43da0d36fc0c9277ca86ece252.jpg)
[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)

easyExcel

stm32F407-------DMA
![[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)](/img/41/2413af283e8f1db5d20ea845527175.gif)
[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)

Producer consumer model based on thread pool (including blocking queue)
![[fluent] fluent debugging (debug debugging window | viewing mobile phone log information | setting normal breakpoints | setting expression breakpoints)](/img/ac/bf83f319ea787c5abd7ac3fabc9ede.jpg)
[fluent] fluent debugging (debug debugging window | viewing mobile phone log information | setting normal breakpoints | setting expression breakpoints)

通达OA v12流程中心

elastic stack
随机推荐
GBase 8c系统表pg_database
Use go language to realize try{}catch{}finally
RestCloud ETL 跨库数据聚合运算
iptables 4层转发
stm32F407-------DMA
微服务组件Sentinel (Hystrix)详细分析
基于线程池的生产者消费者模型(含阻塞队列)
PyTorch 卷积网络正则化 DropBlock
Gbase 8C system table PG_ authid
Apple releases MacOS 11.6.4 update: mainly security fixes
面试八股文整理版
4. Classes and objects
Solution for processing overtime orders (Overtime unpaid)
通达OA v12流程中心
awk从入门到入土(1)awk初次会面
Deep learning notes (constantly updating...)
缺少库while loading shared libraries: libisl.so.15: cannot open shared object file: No such file
JS的装箱和拆箱
require. context
【 tutoriel】 Chrome ferme les cors et les messages de la politique inter - domaines et apporte des cookies à travers les domaines