forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc086896
committed
Fix tablespace handling in MERGE/SPLIT partition commands.
As commitca41030 stated, new partitions without a specified tablespaceshould inherit the parent relation's tablespace. However, previously,ALTER TABLE MERGE PARTITIONS and ALTER TABLE SPLIT PARTITION commandsalways created new partitions in the default tablespace, ignoringthe parent's tablespace. This commit ensures new partitions inheritthe parent's tablespace.Backpatch to v17 where these commands were introduced.Author: Fujii MasaoReviewed-by: Masahiko SawadaDiscussion:https://postgr.es/m/abaf390b-3320-40a5-8815-ef476db5cfe7@oss.nttdata.com1 parent069d0ff commitc086896
File tree
6 files changed
+79
-3
lines changed- doc/src/sgml/ref
- src
- backend/commands
- test/regress
- expected
- sql
6 files changed
+79
-3
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1163 | 1163 |
| |
1164 | 1164 |
| |
1165 | 1165 |
| |
1166 |
| - | |
| 1166 | + | |
| 1167 | + | |
1167 | 1168 |
| |
1168 | 1169 |
| |
1169 | 1170 |
| |
| |||
1235 | 1236 |
| |
1236 | 1237 |
| |
1237 | 1238 |
| |
1238 |
| - | |
| 1239 | + | |
| 1240 | + | |
1239 | 1241 |
| |
1240 | 1242 |
| |
1241 | 1243 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20340 | 20340 |
| |
20341 | 20341 |
| |
20342 | 20342 |
| |
20343 |
| - | |
| 20343 | + | |
20344 | 20344 |
| |
20345 | 20345 |
| |
20346 | 20346 |
| |
|
Lines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
861 | 861 |
| |
862 | 862 |
| |
863 | 863 |
| |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
864 | 887 |
| |
865 | 888 |
| |
866 | 889 |
| |
|
Lines changed: 26 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1493 | 1493 |
| |
1494 | 1494 |
| |
1495 | 1495 |
| |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
1496 | 1522 |
| |
1497 | 1523 |
| |
1498 | 1524 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
536 | 536 |
| |
537 | 537 |
| |
538 | 538 |
| |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
539 | 551 |
| |
540 | 552 |
| |
541 | 553 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
880 | 880 |
| |
881 | 881 |
| |
882 | 882 |
| |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
883 | 896 |
| |
884 | 897 |
| |
885 | 898 |
| |
|
0 commit comments
Comments
(0)