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

Commit adbcd3e

Browse files
Improve documentation for default_tablespace on partitioned tables
Backpatch to 12, where 8725958 introduced the current behavior. Per note from Justin Pryzby. Co-authored-by: Justin Pryzby <pryzby@telsasoft.com> Discussion: https://postgr.es/m/20210416143135.GI3315@telsasoft.com
1 parent 824df1c commit adbcd3e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

doc/src/sgml/config.sgml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7564,8 +7564,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
75647564
<para>
75657565
This variable specifies the default tablespace in which to create
75667566
objects (tables and indexes) when a <command>CREATE</command> command does
7567-
not explicitly specify a tablespace. It also determines the tablespace
7568-
that a partitioned relation will direct future partitions to.
7567+
not explicitly specify a tablespace.
75697568
</para>
75707569

75717570
<para>
@@ -7589,6 +7588,14 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
75897588
the template database it is copied from.
75907589
</para>
75917590

7591+
<para>
7592+
If this parameter is set to a value other than the empty string
7593+
when a partitioned table is created, the partitioned table's
7594+
tablespace will be set to that value, which will be used as
7595+
the default tablespace for partitions created in the future,
7596+
even if <varname>default_tablespace</varname> has changed since then.
7597+
</para>
7598+
75927599
<para>
75937600
For more information on tablespaces,
75947601
see <xref linkend="manage-ag-tablespaces"/>.

0 commit comments

Comments
 (0)