forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit356687b
committed
Reset, not recreate, execGrouping.c style hashtables.
This uses the facility added in the preceding commit to fixperformance issues caused by rebuilding the hashtable (with itscomparator expression being the most expensive bit), after everyreset. That's especially important when the comparator is JITcompiled.Bug: #15592 #15486Reported-By: Jakub Janeček, Dmitry MarakasovAuthor: Andres FreundDiscussion:https://postgr.es/m/15486-05850f065da42931@postgresql.orghttps://postgr.es/m/20190114180423.ywhdg2iagzvh43we@alap3.anarazel.deBackpatch: 11, where I broke this inbf6c6141 parent317ffdf commit356687b
File tree
4 files changed
+79
-64
lines changed- src/backend/executor
4 files changed
+79
-64
lines changedLines changed: 19 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1246 | 1246 |
| |
1247 | 1247 |
| |
1248 | 1248 |
| |
1249 |
| - | |
| 1249 | + | |
1250 | 1250 |
| |
1251 | 1251 |
| |
1252 | 1252 |
| |
| |||
1257 | 1257 |
| |
1258 | 1258 |
| |
1259 | 1259 |
| |
1260 |
| - | |
1261 |
| - | |
1262 |
| - | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
1263 | 1263 |
| |
1264 | 1264 |
| |
1265 | 1265 |
| |
| |||
1278 | 1278 |
| |
1279 | 1279 |
| |
1280 | 1280 |
| |
1281 |
| - | |
1282 |
| - | |
1283 |
| - | |
1284 |
| - | |
1285 |
| - | |
1286 |
| - | |
1287 |
| - | |
1288 |
| - | |
1289 |
| - | |
1290 |
| - | |
1291 |
| - | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
1292 | 1296 |
| |
1293 | 1297 |
| |
1294 | 1298 |
| |
|
Lines changed: 14 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
| |||
317 | 318 |
| |
318 | 319 |
| |
319 | 320 |
| |
320 |
| - | |
| 321 | + | |
321 | 322 |
| |
322 |
| - | |
| 323 | + | |
323 | 324 |
| |
324 | 325 |
| |
325 | 326 |
| |
|
Lines changed: 13 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
129 |
| - | |
130 |
| - | |
131 |
| - | |
132 |
| - | |
133 |
| - | |
134 |
| - | |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
140 | 141 |
| |
141 | 142 |
| |
142 | 143 |
| |
| |||
635 | 636 |
| |
636 | 637 |
| |
637 | 638 |
| |
638 |
| - | |
| 639 | + | |
639 | 640 |
| |
640 | 641 |
| |
641 | 642 |
| |
|
Lines changed: 33 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
481 | 481 |
| |
482 | 482 |
| |
483 | 483 |
| |
484 |
| - | |
485 |
| - | |
| 484 | + | |
| 485 | + | |
486 | 486 |
| |
487 | 487 |
| |
488 | 488 |
| |
| |||
505 | 505 |
| |
506 | 506 |
| |
507 | 507 |
| |
508 |
| - | |
509 |
| - | |
510 |
| - | |
511 |
| - | |
512 |
| - | |
513 |
| - | |
514 |
| - | |
515 |
| - | |
516 |
| - | |
517 |
| - | |
518 |
| - | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
519 | 523 |
| |
520 | 524 |
| |
521 | 525 |
| |
| |||
527 | 531 |
| |
528 | 532 |
| |
529 | 533 |
| |
530 |
| - | |
531 |
| - | |
532 |
| - | |
533 |
| - | |
534 |
| - | |
535 |
| - | |
536 |
| - | |
537 |
| - | |
538 |
| - | |
539 |
| - | |
540 |
| - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
541 | 550 |
| |
542 | 551 |
| |
543 | 552 |
| |
|
0 commit comments
Comments
(0)