You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ON SEQUENCE <replaceable class="PARAMETER">sequencename</replaceable> [, ...]
31
31
TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
32
32
33
-
GRANT { { CREATE | TEMPORARY | TEMP | CONNECTION } [,...] | ALL [ PRIVILEGES ] }
33
+
GRANT { { CREATE | CONNECT | TEMPORARY | TEMP } [,...] | ALL [ PRIVILEGES ] }
34
34
ON DATABASE <replaceable>dbname</replaceable> [, ...]
35
35
TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
36
36
@@ -118,7 +118,8 @@ GRANT <replaceable class="PARAMETER">role</replaceable> [, ...]
118
118
Depending on the type of object, the initial default privileges may
119
119
include granting some privileges to <literal>PUBLIC</literal>.
120
120
The default is no public access for tables, schemas, and tablespaces;
121
-
<literal>TEMP</> table creation privilege for databases;
121
+
<literal>CONNECT</> privilege and <literal>TEMP</> table creation privilege
122
+
for databases;
122
123
<literal>EXECUTE</> privilege for functions; and
123
124
<literal>USAGE</> privilege for languages.
124
125
The object owner may of course revoke these privileges. (For maximum
@@ -230,13 +231,12 @@ GRANT <replaceable class="PARAMETER">role</replaceable> [, ...]
230
231
</varlistentry>
231
232
232
233
<varlistentry>
233
-
<term>CONNECTION</term>
234
+
<term>CONNECT</term>
234
235
<listitem>
235
236
<para>
236
-
Allows the ability to connect to the specified database.
237
-
By default, Grant permissions allow users to connect to any database,
238
-
though <filename>pg_hba.conf</> can add additional connection
239
-
restrictions.
237
+
Allows the user to connect to the specified database. This
238
+
privilege is checked at connection startup (in addition to checking
239
+
any restrictions imposed by <filename>pg_hba.conf</>).
240
240
</para>
241
241
</listitem>
242
242
</varlistentry>
@@ -429,7 +429,7 @@ GRANT <replaceable class="PARAMETER">role</replaceable> [, ...]
0 commit comments