summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2014-10-18 14:23:42 +0000
committerBruce Momjian2014-10-18 14:23:42 +0000
commit97d554871c3d186db831b35c0eabe6d496e4f54b (patch)
treeb32e2996c51a515a0933e2bbbbc27913466a34f1
parent52c1ae22d6a4daf1c1c01fc9244f8ebae5402b1a (diff)
doc: restrictions on alter database moving default tablespace
Mention tablespace must be empty and no one connected to the database. Report by Josh Berkus
-rw-r--r--doc/src/sgml/ref/alter_database.sgml6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/alter_database.sgml b/doc/src/sgml/ref/alter_database.sgml
index 3724c05e2c..333db5b1c2 100644
--- a/doc/src/sgml/ref/alter_database.sgml
+++ b/doc/src/sgml/ref/alter_database.sgml
@@ -77,8 +77,10 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> RESET ALL
Only the database owner or a superuser can do this; you must also have
create privilege for the new tablespace.
This command physically moves any tables or indexes in the database's old
- default tablespace to the new tablespace. Note that tables and indexes
- in non-default tablespaces are not affected.
+ default tablespace to the new tablespace. The new default tablespace
+ for this database must be empty, and no one can be connected to
+ the database. Tables and indexes in non-default tablespaces are
+ unaffected.
</para>
<para>