forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb3b7f78
committed
Fix additional breakage in covering-index patch.
CheckIndexCompatible() misused ComputeIndexAttrs() by not botheringto fill ii_NumIndexAttrs and ii_NumIndexKeyAttrs in the passedIndexInfo. Omission of ii_NumIndexAttrs was previously unimportant,but now this matters because ComputeIndexAttrs depends onii_NumIndexKeyAttrs to decide how many columns it needs to report on.(BTW, the fact that this oversight wasn't detected earlier impliesthat we have no regression test verifying whether CheckIndexCompatibleever succeeds. Bad dog. Not the job of this patch to fix it, though.)Also, change the API of ComputeIndexAttrs so that it fills the opclassoutput array for all column positions, as it does for the options outputarray; positions for non-key index columns are filled with zeroes.This isn't directly fixing any bug, but it seems like a good idea.Per valgrind failure reports from buildfarm.Alexander Korotkov, tweaked a bit by meDiscussion:https://postgr.es/m/CAPpHfduWrysrT-qAhn+3Ea5+Mg6Vhc-oA6o2Z-hRCPRdvf3tiw@mail.gmail.com1 parent893e9e6 commitb3b7f78
1 file changed
+8
-3
lines changedLines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
185 |
| - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
186 | 188 |
| |
187 | 189 |
| |
| 190 | + | |
| 191 | + | |
188 | 192 |
| |
189 | 193 |
| |
190 | 194 |
| |
| |||
650 | 654 |
| |
651 | 655 |
| |
652 | 656 |
| |
653 |
| - | |
| 657 | + | |
654 | 658 |
| |
655 | 659 |
| |
656 | 660 |
| |
| |||
1518 | 1522 |
| |
1519 | 1523 |
| |
1520 | 1524 |
| |
1521 |
| - | |
| 1525 | + | |
1522 | 1526 |
| |
1523 | 1527 |
| |
1524 | 1528 |
| |
| 1529 | + | |
1525 | 1530 |
| |
1526 | 1531 |
| |
1527 | 1532 |
| |
|
0 commit comments
Comments
(0)