- Notifications
You must be signed in to change notification settings - Fork28
Commit4eaa537
committed
Don't allow partitioned index on foreign-table partitions
Creating indexes on foreign tables is already forbidden, but localpartitioned indexes (commit8b08f7d) forgot to check for them. Adda preliminary check to prevent wasting time.Another school of thought says to allow the index to be created if it'snot a unique index; but it's possible to do better in the future (enableindexing of foreign tables, somehow), so we avoid painting ourselves ina corner by rejecting all cases, to avoid future grief (a.k.a. backwardincompatible changes).Reported-by: Arseny SherAuthor: Amit Langote, Álvaro HerreraDiscussion:https://postgr.es/m/87sh71cakz.fsf@ars-thinkpad1 parentfc2a41e commit4eaa537
File tree
3 files changed
+39
-12
lines changed- src
- backend/tcop
- test/regress
- expected
- sql
3 files changed
+39
-12
lines changedLines changed: 26 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| 70 | + | |
70 | 71 |
| |
71 | 72 |
| |
72 | 73 |
| |
| |||
1287 | 1288 |
| |
1288 | 1289 |
| |
1289 | 1290 |
| |
1290 |
| - | |
1291 | 1291 |
| |
1292 | 1292 |
| |
1293 | 1293 |
| |
| |||
1314 | 1314 |
| |
1315 | 1315 |
| |
1316 | 1316 |
| |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1317 | 1321 |
| |
1318 |
| - | |
| 1322 | + | |
| 1323 | + | |
1319 | 1324 |
| |
1320 |
| - | |
1321 |
| - | |
1322 |
| - | |
1323 |
| - | |
1324 |
| - | |
1325 |
| - | |
1326 |
| - | |
1327 |
| - | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1328 | 1344 |
| |
1329 | 1345 |
| |
1330 | 1346 |
| |
| |||
1353 | 1369 |
| |
1354 | 1370 |
| |
1355 | 1371 |
| |
1356 |
| - | |
1357 |
| - | |
1358 | 1372 |
| |
1359 | 1373 |
| |
1360 | 1374 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
749 | 749 |
| |
750 | 750 |
| |
751 | 751 |
| |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
752 | 759 |
| |
753 | 760 |
| |
754 | 761 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
316 | 316 |
| |
317 | 317 |
| |
318 | 318 |
| |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
319 | 325 |
| |
320 | 326 |
| |
321 | 327 |
| |
|
0 commit comments
Comments
(0)