Name> Return Type> Description>
of current_user>.
+
+
+
Access Privilege Inquiry Functions>
+
+
+ Name> Return Type> Description>
+
+
+
+ |
+
has_table_privilege(user,
+
+ boolean>
+ does user have access to table>
+
+ |
+
has_table_privilege(table,
+
+ boolean>
+ does current user have access to table>
+
+
+
+
+
+
+
+
+ has_table_privilege> determines whether a user
+ can access a table in a particular way. The user can be
+ specified by name or by usesysid, or if the argument is omitted
+ current_user> is assumed. The table can be specified
+ by name or by OID. (Thus, there are actually six variants of
+ has_table_privilege>, which can be distinguished by
+ the number and types of their arguments.) The desired access type
+ is specified by a text string, which must evaluate to one of the
+ values SELECT>, INSERT>, UPDATE>,
+ DELETE>, RULE>, REFERENCES>, or
+ TRIGGER>. (Case of the string is not significant, however.)
+
+