diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-03-27 18:21:03 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-03-27 18:21:03 -0400 |
commit | d65b665d524a67273b075f468bf3d60ce31f4040 (patch) | |
tree | deffd09db05b4db461b3b054373cb8d411a0e2d4 /src/backend/parser/parse_clause.c | |
parent | fa09f8935156533584b4e215bdf70ec1ff968dad (diff) | |
download | postgresql-d65b665d524a67273b075f468bf3d60ce31f4040.tar.gz postgresql-d65b665d524a67273b075f468bf3d60ce31f4040.zip |
Guard against zero vardata.rel->tuples in estimate_hash_bucketsize().
If the referenced rel was proven empty, we'd compute 0/0 here, which
results in the function returning NaN. That's a bit more serious
than the other zero-divide case. Still, it only seems to be possible
in HEAD, so no back-patch.
Per report from Piotr Stefaniak. I looked through the rest of selfuncs.c
and found no other likely trouble spots.
Diffstat (limited to 'src/backend/parser/parse_clause.c')
0 files changed, 0 insertions, 0 deletions