ON SEQUENCE <replaceable class="PARAMETER">sequencename</replaceable> [, ...]
ON SEQUENCE <replaceable class="PARAMETER">sequencename</replaceable> [, ...]
TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
GRANT { { CREATE | TEMPORARY | TEMP | CONNECTION } [,...] | ALL [ PRIVILEGES ] }
GRANT { { CREATE | CONNECT | TEMPORARY | TEMP } [,...] | ALL [ PRIVILEGES ] }
ON DATABASE <replaceable>dbname</replaceable> [, ...]
ON DATABASE <replaceable>dbname</replaceable> [, ...]
TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
@ -118,7 +118,8 @@ GRANT <replaceable class="PARAMETER">role</replaceable> [, ...]
Depending on the type of object, the initial default privileges may
Depending on the type of object, the initial default privileges may
include granting some privileges to <literal>PUBLIC</literal>.
include granting some privileges to <literal>PUBLIC</literal>.
The default is no public access for tables, schemas, and tablespaces;
The default is no public access for tables, schemas, and tablespaces;
<literal>TEMP</> table creation privilege for databases;
<literal>CONNECT</> privilege and <literal>TEMP</> table creation privilege
for databases;
<literal>EXECUTE</> privilege for functions; and
<literal>EXECUTE</> privilege for functions; and
<literal>USAGE</> privilege for languages.
<literal>USAGE</> privilege for languages.
The object owner may of course revoke these privileges. (For maximum
The object owner may of course revoke these privileges. (For maximum
@ -230,13 +231,12 @@ GRANT <replaceable class="PARAMETER">role</replaceable> [, ...]
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term>CONNECTION</term>
<term>CONNECT</term>
<listitem>
<listitem>
<para>
<para>
Allows the ability to connect to the specified database.
Allows the user to connect to the specified database. This
By default, Grant permissions allow users to connect to any database,
privilege is checked at connection startup (in addition to checking
though <filename>pg_hba.conf</> can add additional connection
any restrictions imposed by <filename>pg_hba.conf</>).
restrictions.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
@ -429,7 +429,7 @@ GRANT <replaceable class="PARAMETER">role</replaceable> [, ...]