Document the privileges required for each of the sequence functions.
This was already in the GRANT reference page, but also add it to the
function description for easier reference.
</para>
</important>
+ <para>
+ This function requires <literal>USAGE</literal>
+ or <literal>UPDATE</literal> privilege on the sequence.
+ </para>
</listitem>
</varlistentry>
other sessions have executed <function>nextval</function> since the
current session did.
</para>
+
+ <para>
+ This function requires <literal>USAGE</literal>
+ or <literal>SELECT</literal> privilege on the sequence.
+ </para>
</listitem>
</varlistentry>
<function>lastval</function> if <function>nextval</function>
has not yet been called in the current session.
</para>
+
+ <para>
+ This function requires <literal>USAGE</literal>
+ or <literal>SELECT</literal> privilege on the last used sequence.
+ </para>
</listitem>
</varlistentry>
back.
</para>
</important>
+
+ <para>
+ This function requires <literal>UPDATE</literal> privilege on the
+ sequence.
+ </para>
</listitem>
</varlistentry>
</variablelist>