forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit39a3105
committed
Fix incorrect hash equality operator bug in Memoize
In v14, because we don't have a field in RestrictInfo to cache both theleft and right type's hash equality operator, we just restrict the scopeof Memoize to only when the left and right types of a RestrictInfo are thesame.In master we add another field to RestrictInfo and cache both hashequality operators.Reported-by: Jaime CasanovaAuthor: David RowleyDiscussion:https://postgr.es/m/20210929185544.GB24346%40ahch-toBackpatch-through: 141 parente2fbb88 commit39a3105
File tree
6 files changed
+54
-22
lines changed- src
- backend
- nodes
- optimizer
- path
- plan
- util
- include/nodes
6 files changed
+54
-22
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2362 | 2362 |
| |
2363 | 2363 |
| |
2364 | 2364 |
| |
2365 |
| - | |
| 2365 | + | |
| 2366 | + | |
2366 | 2367 |
| |
2367 | 2368 |
| |
2368 | 2369 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2565 | 2565 |
| |
2566 | 2566 |
| |
2567 | 2567 |
| |
2568 |
| - | |
| 2568 | + | |
| 2569 | + | |
2569 | 2570 |
| |
2570 | 2571 |
| |
2571 | 2572 |
| |
|
Lines changed: 23 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
394 | 394 |
| |
395 | 395 |
| |
396 | 396 |
| |
| 397 | + | |
397 | 398 |
| |
398 |
| - | |
399 |
| - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
400 | 406 |
| |
401 | 407 |
| |
402 | 408 |
| |
403 | 409 |
| |
404 | 410 |
| |
405 | 411 |
| |
406 | 412 |
| |
407 |
| - | |
408 |
| - | |
409 |
| - | |
410 |
| - | |
411 |
| - | |
412 | 413 |
| |
| 414 | + | |
413 | 415 |
| |
| 416 | + | |
| 417 | + | |
414 | 418 |
| |
| 419 | + | |
415 | 420 |
| |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
416 | 431 |
| |
417 |
| - | |
| 432 | + | |
418 | 433 |
| |
419 | 434 |
| |
420 | 435 |
| |
|
Lines changed: 20 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2711 | 2711 |
| |
2712 | 2712 |
| |
2713 | 2713 |
| |
2714 |
| - | |
2715 |
| - | |
| 2714 | + | |
| 2715 | + | |
2716 | 2716 |
| |
2717 | 2717 |
| |
2718 | 2718 |
| |
2719 | 2719 |
| |
2720 | 2720 |
| |
2721 | 2721 |
| |
2722 |
| - | |
| 2722 | + | |
| 2723 | + | |
2723 | 2724 |
| |
2724 | 2725 |
| |
2725 | 2726 |
| |
| |||
2728 | 2729 |
| |
2729 | 2730 |
| |
2730 | 2731 |
| |
2731 |
| - | |
| 2732 | + | |
2732 | 2733 |
| |
2733 |
| - | |
| 2734 | + | |
2734 | 2735 |
| |
2735 | 2736 |
| |
2736 |
| - | |
2737 |
| - | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
2738 | 2749 |
| |
2739 |
| - | |
| 2750 | + | |
| 2751 | + | |
2740 | 2752 |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
217 | 217 |
| |
218 | 218 |
| |
219 | 219 |
| |
220 |
| - | |
| 220 | + | |
| 221 | + | |
221 | 222 |
| |
222 | 223 |
| |
223 | 224 |
| |
| |||
368 | 369 |
| |
369 | 370 |
| |
370 | 371 |
| |
371 |
| - | |
| 372 | + | |
| 373 | + | |
372 | 374 |
| |
373 | 375 |
| |
374 | 376 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2122 | 2122 |
| |
2123 | 2123 |
| |
2124 | 2124 |
| |
2125 |
| - | |
2126 |
| - | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
2127 | 2128 |
| |
2128 | 2129 |
| |
2129 | 2130 |
| |
|
0 commit comments
Comments
(0)