⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dependency.sql

📁 PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统
💻 SQL
字号:
---- DEPENDENCIES--CREATE USER regression_user;CREATE USER regression_user2;CREATE USER regression_user3;CREATE GROUP regression_group;CREATE TABLE deptest (f1 serial primary key, f2 text);GRANT SELECT ON TABLE deptest TO GROUP regression_group;GRANT ALL ON TABLE deptest TO regression_user, regression_user2;-- can't drop neither because they have privileges somewhereDROP USER regression_user;DROP GROUP regression_group;-- if we revoke the privileges we can drop the groupREVOKE SELECT ON deptest FROM GROUP regression_group;DROP GROUP regression_group;-- can't drop the user if we revoke the privileges partiallyREVOKE SELECT, INSERT, UPDATE, DELETE, RULE, REFERENCES ON deptest FROM regression_user;DROP USER regression_user;-- now we are OK to drop himREVOKE TRIGGER ON deptest FROM regression_user;DROP USER regression_user;-- we are OK too if we drop the privileges all at onceREVOKE ALL ON deptest FROM regression_user2;DROP USER regression_user2;-- can't drop the owner of an object-- the error message detail here would include a pg_toast_nnn name that-- is not constant, so suppress it\set VERBOSITY terseALTER TABLE deptest OWNER TO regression_user3;DROP USER regression_user3;-- if we drop the object, we can drop the user tooDROP TABLE deptest;DROP USER regression_user3;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -