@@ -630,14 +630,21 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
630
630
moves the data file(s) associated with the table to the new tablespace.
631
631
Indexes on the table, if any, are not moved; but they can be moved
632
632
separately with additional <literal>SET TABLESPACE</literal> commands.
633
+ When applied to a partitioned table, nothing is moved, but any
634
+ partitions created afterwards with
635
+ <command>CREATE TABLE PARTITION OF</command> will use that tablespace,
636
+ unless the <literal>TABLESPACE</literal> clause is used to override it.
637
+ </para>
638
+
639
+ <para>
633
640
All tables in the current database in a tablespace can be moved by using
634
641
the <literal>ALL IN TABLESPACE</literal> form, which will lock all tables
635
642
to be moved first and then move each one. This form also supports
636
643
<literal>OWNED BY</literal>, which will only move tables owned by the
637
644
roles specified. If the <literal>NOWAIT</literal> option is specified
638
645
then the command will fail if it is unable to acquire all of the locks
639
646
required immediately. Note that system catalogs are not moved by this
640
- command, use <command>ALTER DATABASE</command> or explicit
647
+ command; use <command>ALTER DATABASE</command> or explicit
641
648
<command>ALTER TABLE</command> invocations instead if desired. The
642
649
<literal>information_schema</literal> relations are not considered part
643
650
of the system catalogs and will be moved.
0 commit comments