2015-07-07 20:49:28 +08:00
|
|
|
CREATE ROLE publicuser;
|
|
|
|
CREATE TABLE pub(a int);
|
|
|
|
CREATE TABLE prv(a int);
|
|
|
|
GRANT SELECT ON TABLE pub TO publicuser;
|
|
|
|
REVOKE SELECT ON TABLE prv FROM publicuser;
|
2014-05-06 00:48:48 +08:00
|
|
|
SELECT CDB_UserTables() ORDER BY 1;
|
|
|
|
SELECT 'all',CDB_UserTables('all') ORDER BY 2;
|
|
|
|
SELECT 'public',CDB_UserTables('public') ORDER BY 2;
|
|
|
|
SELECT 'private',CDB_UserTables('private') ORDER BY 2;
|
|
|
|
SELECT '--unsupported--',CDB_UserTables('--unsupported--') ORDER BY 2;
|
2015-07-07 20:49:28 +08:00
|
|
|
DROP TABLE pub;
|
|
|
|
DROP TABLE prv;
|
|
|
|
DROP ROLE publicuser;
|