boolean
does current user have privilege for tablespace
+ |
+
has_type_privilege(user,
+
+ boolean
+ does user have privilege for type
+
+ |
+
has_type_privilege(type,
+
+ boolean
+ does current user have privilege for type
+
|
+
+
CREATE.
+ has_type_privilege checks whether a user
+ can access a type in a particular way.
+ Its argument possibilities
+ are analogous to has_table_privilege.
+ When specifying a type by a text string rather than by OID,
+ the allowed input is the same as for the regtype> data type
+ (see ).
+ The desired access privilege type must evaluate to
+ USAGE.
+
+
pg_has_role checks whether a user
can access a role in a particular way.