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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy