Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
2adf1ce6
Commit
2adf1ce6
authored
23 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Oops, forgot to commit doco updates for has_table_privilege.
parent
a8261182
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/func.sgml
+48
-2
48 additions, 2 deletions
doc/src/sgml/func.sgml
with
48 additions
and
2 deletions
doc/src/sgml/func.sgml
+
48
−
2
View file @
2adf1ce6
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.6
0
2001/06/1
3
2
2:51:02 momjian
Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.6
1
2001/06/1
5
2
1:03:07 tgl
Exp $ -->
<chapter id="functions">
<title>Functions and Operators</title>
...
...
@@ -3570,7 +3570,7 @@ SELECT NULLIF(value, '(none)') ...
<title>Miscellaneous Functions</>
<table>
<title>
Miscellaneous
Functions</>
<title>
Session Information
Functions</>
<tgroup cols="3">
<thead>
<row><entry>Name</> <entry>Return Type</> <entry>Description</></row>
...
...
@@ -3624,6 +3624,52 @@ SELECT NULLIF(value, '(none)') ...
of <function>current_user</>.
</para>
</note>
<table>
<title>Access Privilege Inquiry Functions</>
<tgroup cols="3">
<thead>
<row><entry>Name</> <entry>Return Type</> <entry>Description</></row>
</thead>
<tbody>
<row>
<entry>has_table_privilege(<parameter>user</parameter>,
<parameter>table</parameter>,
<parameter>access</parameter>)
</entry>
<entry>boolean</>
<entry>does user have access to table</>
</row>
<row>
<entry>has_table_privilege(<parameter>table</parameter>,
<parameter>access</parameter>)
</entry>
<entry>boolean</>
<entry>does current user have access to table</>
</row>
</tbody>
</tgroup>
</table>
<indexterm zone="functions-misc">
<primary>has_table_privilege</primary>
</indexterm>
<para>
<function>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
<function>current_user</> is assumed. The table can be specified
by name or by OID. (Thus, there are actually six variants of
<function>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 <literal>SELECT</>, <literal>INSERT</>, <literal>UPDATE</>,
<literal>DELETE</>, <literal>RULE</>, <literal>REFERENCES</>, or
<literal>TRIGGER</>. (Case of the string is not significant, however.)
</para>
</sect1>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment