mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Add sequence USAGE privileges to information schema
The sequence USAGE privilege is sufficiently similar to the SQL standard that it seems reasonable to show in the information schema. Also add some compatibility notes about it on the GRANT reference page.
This commit is contained in:
@@ -642,6 +642,18 @@ GRANT admins TO joe;
|
||||
translations.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
In the SQL standard, sequences only have a <literal>USAGE</literal>
|
||||
privilege, which controls the use of the <literal>NEXT VALUE FOR</literal>
|
||||
expression, which is equivalent to the
|
||||
function <function>nextval</function> in PostgreSQL. The sequence
|
||||
privileges <literal>SELECT</literal> and <literal>UPDATE</literal> are
|
||||
PostgreSQL extensions. The application of the
|
||||
sequence <literal>USAGE</literal> privilege to
|
||||
the <literal>currval</literal> function is also a PostgreSQL extension (as
|
||||
is the function itself).
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Privileges on databases, tablespaces, schemas, and languages are
|
||||
<productname>PostgreSQL</productname> extensions.
|
||||
|
Reference in New Issue
Block a user