forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcec5501
committed
Add a regression test case to improve code coverage for tuplesort.
Test the external-sort code path in CLUSTER for two different scenarios:multiple-pass external sorting, and the best case for replacementselection, where only one run is produced, so that no merge is required.This test would have caught the bug fixed in commit1b0fc85, atleast when run with valgrind enabled.In passing, add a short-circuit test in plan_cluster_use_sort() to makedead certain that it selects sorting when enable_indexscan is off. Asthings stand, that would happen anyway, but it seems like good futureproofing for this test.Peter GeogheganDiscussion: <CAM3SWZSgxehDkDMq1FdiW2A0Dxc79wH0hz1x-TnGy=1BXEL+nw@mail.gmail.com>1 parent91c0eb5 commitcec5501
File tree
3 files changed
+74
-0
lines changed- src
- backend/optimizer/plan
- test/regress
- expected
- sql
3 files changed
+74
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5193 | 5193 |
| |
5194 | 5194 |
| |
5195 | 5195 |
| |
| 5196 | + | |
| 5197 | + | |
| 5198 | + | |
| 5199 | + | |
5196 | 5200 |
| |
5197 | 5201 |
| |
5198 | 5202 |
| |
|
Lines changed: 36 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
438 | 438 |
| |
439 | 439 |
| |
440 | 440 |
| |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
441 | 476 |
| |
442 | 477 |
| |
443 | 478 |
| |
444 | 479 |
| |
445 | 480 |
| |
446 | 481 |
| |
| 482 | + | |
447 | 483 |
|
Lines changed: 34 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
197 | 230 |
| |
198 | 231 |
| |
199 | 232 |
| |
200 | 233 |
| |
201 | 234 |
| |
202 | 235 |
| |
| 236 | + | |
203 | 237 |
|
0 commit comments
Comments
(0)