Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 97d5548

Browse files
committed
doc: restrictions on alter database moving default tablespace
Mention tablespace must be empty and no one connected to the database. Report by Josh Berkus
1 parent 52c1ae2 commit 97d5548

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/src/sgml/ref/alter_database.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> RESET ALL
7777
Only the database owner or a superuser can do this; you must also have
7878
create privilege for the new tablespace.
7979
This command physically moves any tables or indexes in the database's old
80-
default tablespace to the new tablespace. Note that tables and indexes
81-
in non-default tablespaces are not affected.
80+
default tablespace to the new tablespace. The new default tablespace
81+
for this database must be empty, and no one can be connected to
82+
the database. Tables and indexes in non-default tablespaces are
83+
unaffected.
8284
</para>
8385

8486
<para>

0 commit comments

Comments
 (0)