forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4348738
committed
Fix some oversights in BRIN patch.
Remove HeapScanDescData.rs_initblock, which wasn't being used for anythingin the final version of the patch.Fix IndexBuildHeapScan so that it supports syncscan again; the patchbroke synchronous scanning for index builds by forcing rs_startblkto zero even when the caller did not care about that and had askedfor syncscan.Add some commentary and usage defenses to heap_setscanlimits().Fix heapam so that asking for rs_numblocks == 0 does what you wouldreasonably expect. As coded it amounted to requesting a whole-tablescan, because those "--x <= 0" tests on an unsigned variable wouldbehave surprisingly.1 parent9faa6ae commit4348738
3 files changed
+32
-14
lines changedLines changed: 20 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
277 | 277 |
| |
278 | 278 |
| |
279 | 279 |
| |
280 |
| - | |
281 | 280 |
| |
282 | 281 |
| |
283 | 282 |
| |
| |||
302 | 301 |
| |
303 | 302 |
| |
304 | 303 |
| |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
305 | 310 |
| |
306 | 311 |
| |
307 | 312 |
| |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
308 | 319 |
| |
309 |
| - | |
310 | 320 |
| |
311 | 321 |
| |
312 | 322 |
| |
| |||
477 | 487 |
| |
478 | 488 |
| |
479 | 489 |
| |
480 |
| - | |
| 490 | + | |
481 | 491 |
| |
482 | 492 |
| |
483 | 493 |
| |
| |||
511 | 521 |
| |
512 | 522 |
| |
513 | 523 |
| |
514 |
| - | |
| 524 | + | |
515 | 525 |
| |
516 | 526 |
| |
517 | 527 |
| |
| |||
651 | 661 |
| |
652 | 662 |
| |
653 | 663 |
| |
654 |
| - | |
| 664 | + | |
655 | 665 |
| |
656 | 666 |
| |
657 | 667 |
| |
| |||
662 | 672 |
| |
663 | 673 |
| |
664 | 674 |
| |
665 |
| - | |
| 675 | + | |
666 | 676 |
| |
667 | 677 |
| |
668 | 678 |
| |
| |||
754 | 764 |
| |
755 | 765 |
| |
756 | 766 |
| |
757 |
| - | |
| 767 | + | |
758 | 768 |
| |
759 | 769 |
| |
760 | 770 |
| |
| |||
785 | 795 |
| |
786 | 796 |
| |
787 | 797 |
| |
788 |
| - | |
| 798 | + | |
789 | 799 |
| |
790 | 800 |
| |
791 | 801 |
| |
| |||
914 | 924 |
| |
915 | 925 |
| |
916 | 926 |
| |
917 |
| - | |
| 927 | + | |
918 | 928 |
| |
919 | 929 |
| |
920 | 930 |
| |
| |||
925 | 935 |
| |
926 | 936 |
| |
927 | 937 |
| |
928 |
| - | |
| 938 | + | |
929 | 939 |
| |
930 | 940 |
| |
931 | 941 |
| |
|
Lines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2168 | 2168 |
| |
2169 | 2169 |
| |
2170 | 2170 |
| |
2171 |
| - | |
| 2171 | + | |
| 2172 | + | |
2172 | 2173 |
| |
2173 | 2174 |
| |
2174 | 2175 |
| |
| |||
2251 | 2252 |
| |
2252 | 2253 |
| |
2253 | 2254 |
| |
2254 |
| - | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
2255 | 2263 |
| |
2256 | 2264 |
| |
2257 | 2265 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
42 |
| - | |
| 41 | + | |
| 42 | + | |
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
|
0 commit comments
Comments
(0)