Re: MERGE/SPLIT partition commands should create new partitions in the parent's tablespace?
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2024-07-10T09:58:25Z
Lists: pgsql-hackers
On Sat, 6 Jul 2024 at 19:06, Fujii Masao <masao.fujii@oss.nttdata.com> wrote: > I noticed that ALTER TABLE MERGE PARTITIONS and SPLIT PARTITION commands > always create new partitions in the default tablespace, regardless of > the parent's tablespace. However, the indexes of these new partitions inherit > the tablespaces of their parent indexes. This inconsistency seems odd. > Is this an oversight or intentional? My expectation of this feature is that the tablespace choice would work the same as what was done in ca4103025 to make it inherit from the partition table's tablespace. I imagine we might get complaints if it does not follow the same logic. I've not looked at your patch, but if the behaviour is as you describe and the patch changes that to follow ca4103025, then +1 from me. David
Commits
-
Fix unstable tests in partition_merge.sql and partition_split.sql.
- 4e5d6c40914e 18.0 cited
-
Fix tablespace handling in MERGE/SPLIT partition commands.
- 929390e4d860 17.0 landed
- c08689662532 18.0 landed