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
Create 'default_tablespace' GUC variable that supplies a TABLESPACE
clause implicitly whenever one is not given explicitly. Remove conceptof a schema having an associated tablespace, and simplify the rules forselecting a default tablespace for a table or index. It's now just(a) explicit TABLESPACE clause; (b) default_tablespace if that's not anempty string; (c) database's default. This will allow pg_dump to useSET commands instead of tablespace clauses to determine object locations(but I didn't actually make it do so). All per recent discussions.
@@ -29,10 +29,6 @@ GRANT { { CREATE | TEMPORARY | TEMP } [,...] | ALL [ PRIVILEGES ] }
29
29
ON DATABASE <replaceable>dbname</replaceable> [, ...]
30
30
TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
31
31
32
-
GRANT { CREATE | ALL [ PRIVILEGES ] }
33
-
ON TABLESPACE <replaceable>tablespacename</> [, ...]
34
-
TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
35
-
36
32
GRANT { EXECUTE | ALL [ PRIVILEGES ] }
37
33
ON FUNCTION <replaceable>funcname</replaceable> ([<replaceable>type</replaceable>, ...]) [, ...]
38
34
TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
@@ -44,6 +40,10 @@ GRANT { USAGE | ALL [ PRIVILEGES ] }
44
40
GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] }
45
41
ON SCHEMA <replaceable>schemaname</replaceable> [, ...]
46
42
TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
43
+
44
+
GRANT { CREATE | ALL [ PRIVILEGES ] }
45
+
ON TABLESPACE <replaceable>tablespacename</> [, ...]
46
+
TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
47
47
</synopsis>
48
48
</refsynopsisdiv>
49
49
@@ -52,8 +52,8 @@ GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] }
52
52
53
53
<para>
54
54
The <command>GRANT</command> command gives specific privileges on
55
-
an object (table, view, sequence, database,tablespace,function,
56
-
procedural language, orschema) to
55
+
an object (table, view, sequence, database, function,
56
+
procedural language,schema,ortablespace) to
57
57
one or more users or groups of users. These privileges are added
58
58
to those already granted, if any.
59
59
</para>
@@ -188,17 +188,17 @@ GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] }
188
188
<para>
189
189
For databases, allows new schemas to be created within the database.
190
190
</para>
191
-
<para>
192
-
For tablespaces, allows tables to be created within the tablespace,
193
-
and allows databases and schemas to be created that have the tablespace
194
-
as their default tablespace. (Note that revoking this privilege
195
-
will not alter the behavior of existing databases and schemas.)
196
-
</para>
197
191
<para>
198
192
For schemas, allows new objects to be created within the schema.
199
193
To rename an existing object, you must own the object <emphasis>and</>
200
194
have this privilege for the containing schema.
201
195
</para>
196
+
<para>
197
+
For tablespaces, allows tables and indexes to be created within the
198
+
tablespace, and allows databases to be created that have the tablespace
199
+
as their default tablespace. (Note that revoking this privilege
200
+
will not alter the placement of existing objects.)