forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit475be5e
committed
When index recurses to a partition, map columns numbers
Two out of three code paths were mapping column numbers correctly if apartition had different column numbers than parent table, but the mostcommonly used one (recursing in CREATE INDEX to a new index on apartition) failed to map attribute numbers in expressions. Oddlyenough, attnums in WHERE clauses are already handled correctlyeverywhere.Reported-by: Amit LangoteAuthor: Amit LangoteDiscussion:https://postgr.es/m/dce1fda4-e0f0-94c9-6abb-f5956a98c057@lab.ntt.co.jpReviewed-by: Álvaro Herrera1 parentc6f28af commit475be5e
File tree
3 files changed
+36
-6
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+36
-6
lines changedLines changed: 25 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
993 | 993 |
| |
994 | 994 |
| |
995 | 995 |
| |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
996 | 1006 |
| |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
997 | 1022 |
| |
998 | 1023 |
| |
999 | 1024 |
| |
|
Lines changed: 10 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
631 | 631 |
| |
632 | 632 |
| |
633 | 633 |
| |
| 634 | + | |
634 | 635 |
| |
635 | 636 |
| |
636 | 637 |
| |
637 | 638 |
| |
638 | 639 |
| |
639 |
| - | |
640 |
| - | |
641 |
| - | |
642 |
| - | |
643 |
| - | |
644 |
| - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
645 | 649 |
| |
646 | 650 |
| |
647 | 651 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
326 | 326 |
| |
327 | 327 |
| |
328 | 328 |
| |
| 329 | + | |
329 | 330 |
| |
330 | 331 |
| |
331 | 332 |
| |
|
0 commit comments
Comments
(0)