forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdc816e5
committed
Fix failure when creating cloned indexes for a partition
When using CREATE TABLE for a new partition, the partitioned indexes ofthe parent are created automatically in a fashion similar to LIKEINDEXES. The new partition and its parent use a mapping for attributenumbers for this operation, and while the mapping was correctly built,its length was defined as the number of attributes of the newly-createdchild, and not the parent. If the parent includes dropped columns, thiscould cause failures.This is wrong since8b08f7d which has introduced the concept ofpartitioned indexes, so backpatch down to 11.Reported-by: Wyatt AltAuthor: Michael PaquierReviewed-by: Amit LangoteDiscussion:https://postgr.es/m/CAGem3qCcRmhbs4jYMkenYNfP2kEusDXvTfw-q+eOhM0zTceG-g@mail.gmail.comBackpatch-through: 111 parente174f69 commitdc816e5
File tree
3 files changed
+73
-1
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+73
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1091 | 1091 |
| |
1092 | 1092 |
| |
1093 | 1093 |
| |
1094 |
| - | |
| 1094 | + | |
1095 | 1095 |
| |
1096 | 1096 |
| |
1097 | 1097 |
| |
|
Lines changed: 49 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1168 | 1168 |
| |
1169 | 1169 |
| |
1170 | 1170 |
| |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + |
Lines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
903 | 903 |
| |
904 | 904 |
| |
905 | 905 |
| |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + |
0 commit comments
Comments
(0)