REVOKE (library)
Revokes library privileges from users and roles.
Revokes library privileges from users and roles.
Syntax
REVOKE [ GRANT OPTION FOR ] { USAGE | ALL [ PRIVILEGES ] }
ON LIBRARY [[database.]schema.]library[,...]
FROM grantee[,...]
[ CASCADE ]
Parameters
GRANT OPTION FORRevokes the grant option for the specified privileges. Current privileges for grantees remain unaffected. If you omit this clause, Vertica revokes both the grant option and current privileges.
USAGE- Revokes access to the specified libraries.
Important
Privileges on functions in these libraries must be separately revoked. ALL [PRIVILEGES]- Revokes all library privileges that also belong to the revoker. Users cannot revoke privileges that they themselves lack. The optional keyword
PRIVILEGESconforms with the SQL standard. [database.]schemaDatabase and schema. The default schema is
public. If you specify a database, it must be the current database.library- The target library.
granteeSpecifies whose privileges are revoked, one of the following:
CASCADEIf the target grantees have a grant option to extend the specified privileges to other users,CASCADEspecifies to search for these users and revoke the privileges from them also.
Examples
These commands show how to create a new library, and then grant and revoke user Fred's USAGE privilege on that library.
=> CREATE LIBRARY MyFunctions AS 'home/dbadmin/my_functions.so';
=> GRANT USAGE ON LIBRARY MyFunctions TO Fred;
=> REVOKE USAGE ON LIBRARY MyFunctions FROM Fred;