mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix tablespace handling in MERGE/SPLIT partition commands.
As commit ca4103025d
stated, new partitions without a specified tablespace
should inherit the parent relation's tablespace. However, previously,
ALTER TABLE MERGE PARTITIONS and ALTER TABLE SPLIT PARTITION commands
always created new partitions in the default tablespace, ignoring
the parent's tablespace. This commit ensures new partitions inherit
the parent's tablespace.
Backpatch to v17 where these commands were introduced.
Author: Fujii Masao
Reviewed-by: Masahiko Sawada
Discussion: https://postgr.es/m/abaf390b-3320-40a5-8815-ef476db5cfe7@oss.nttdata.com
This commit is contained in:
@ -1163,7 +1163,8 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
|
||||
New partitions will have the same table access method as the parent.
|
||||
If the parent table is persistent then new partitions are created
|
||||
persistent. If the parent table is temporary then new partitions
|
||||
are also created temporary.
|
||||
are also created temporary. New partitions will also be created in
|
||||
the same tablespace as the parent.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
@ -1235,7 +1236,8 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
|
||||
The new partition will have the same table access method as the parent.
|
||||
If the parent table is persistent then the new partition is created
|
||||
persistent. If the parent table is temporary then the new partition
|
||||
is also created temporary.
|
||||
is also created temporary. The new partition will also be created in
|
||||
the same tablespace as the parent.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user