forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd65b665
committed
Guard against zero vardata.rel->tuples in estimate_hash_bucketsize().
If the referenced rel was proven empty, we'd compute 0/0 here, whichresults in the function returning NaN. That's a bit more seriousthan the other zero-divide case. Still, it only seems to be possiblein HEAD, so no back-patch.Per report from Piotr Stefaniak. I looked through the rest of selfuncs.cand found no other likely trouble spots.1 parentfa09f89 commitd65b665
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3540 | 3540 |
| |
3541 | 3541 |
| |
3542 | 3542 |
| |
3543 |
| - | |
| 3543 | + | |
3544 | 3544 |
| |
3545 | 3545 |
| |
3546 | 3546 |
| |
|
0 commit comments
Comments
(0)