- Notifications
You must be signed in to change notification settings - Fork5
Commit69995c3
committed
Fix cost_rescan() to account for multi-batch hashing correctly.
cost_rescan assumed that we don't need to rebuild the hash table whenrescanning a hash join. However, that's currently only true forsingle-batch joins; for a multi-batch join we must charge full freight.This probably has escaped notice because we'd be unlikely to put a hashjoin on the inside of a nestloop anyway. Nonetheless, it's wrong.Fix in HEAD, but don't backpatch for fear of destabilizing plans instable releases.1 parentb31875b commit69995c3
1 file changed
+14
-4
lines changedLines changed: 14 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3114 | 3114 |
| |
3115 | 3115 |
| |
3116 | 3116 |
| |
3117 |
| - | |
3118 |
| - | |
| 3117 | + | |
| 3118 | + | |
3119 | 3119 |
| |
3120 |
| - | |
3121 |
| - | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
| 3130 | + | |
| 3131 | + | |
3122 | 3132 |
| |
3123 | 3133 |
| |
3124 | 3134 |
| |
|
0 commit comments
Comments
(0)