forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5c6110c
committed
Fix interference between cavering indexes and partitioned tables
The bug is caused due to the original IndexStmt that DefineIndex receivesbeing overwritten when processing the INCLUDE columns. Use separate list ofindex params to propagate to child tables. Add tests covering this case.Amit Langote and Alexander Korotkov.1 parentf1f537c commit5c6110c
File tree
3 files changed
+57
-13
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+57
-13
lines changedLines changed: 14 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
342 | 342 |
| |
343 | 343 |
| |
344 | 344 |
| |
| 345 | + | |
345 | 346 |
| |
346 | 347 |
| |
347 | 348 |
| |
| |||
378 | 379 |
| |
379 | 380 |
| |
380 | 381 |
| |
381 |
| - | |
382 |
| - | |
383 |
| - | |
384 |
| - | |
385 |
| - | |
386 |
| - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
387 | 388 |
| |
388 |
| - | |
389 |
| - | |
390 |
| - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
391 | 392 |
| |
392 | 393 |
| |
393 | 394 |
| |
| |||
544 | 545 |
| |
545 | 546 |
| |
546 | 547 |
| |
547 |
| - | |
| 548 | + | |
548 | 549 |
| |
549 | 550 |
| |
550 | 551 |
| |
| |||
658 | 659 |
| |
659 | 660 |
| |
660 | 661 |
| |
661 |
| - | |
| 662 | + | |
662 | 663 |
| |
663 | 664 |
| |
664 | 665 |
| |
| |||
886 | 887 |
| |
887 | 888 |
| |
888 | 889 |
| |
889 |
| - | |
890 |
| - | |
| 890 | + | |
| 891 | + | |
891 | 892 |
| |
892 | 893 |
| |
893 | 894 |
| |
|
Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1313 | 1313 |
| |
1314 | 1314 |
| |
1315 | 1315 |
| |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + |
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
701 | 701 |
| |
702 | 702 |
| |
703 | 703 |
| |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + |
0 commit comments
Comments
(0)