postgresql/src
Tom Lane d65b665d52 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.
2016-03-27 18:21:03 -04:00
..
backend Guard against zero vardata.rel->tuples in estimate_hash_bucketsize(). 2016-03-27 18:21:03 -04:00
bin pg_rewind: fsync target data directory. 2016-03-27 23:46:25 +02:00
common Move keywords.c/kwlookup.c into src/common/. 2016-03-23 20:22:08 -04:00
fe_utils Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
include Don't use !! but != 0/NULL to force boolean evaluation. 2016-03-27 18:10:19 +02:00
interfaces Move keywords.c/kwlookup.c into src/common/. 2016-03-23 20:22:08 -04:00
makefiles Fix typos in comments and doc 2016-01-28 16:47:36 +09:00
pl Fix PL/Tcl for vpath builds. 2016-03-25 17:13:03 -04:00
port Suppress GCC 6 warning about self-comparison 2016-03-08 19:41:51 -05:00
template Remove some remains from Alpha support removal 2015-10-29 16:40:14 -04:00
test Fix DROP OPERATOR to reset oprcom/oprnegate links to the dropped operator. 2016-03-25 12:33:16 -04:00
timezone Modernize zic's test for valid timezone abbreviations. 2016-03-26 15:58:44 -04:00
tools Improve PL/Tcl errorCode facility by providing decoded name for SQLSTATE. 2016-03-25 16:54:52 -04:00
tutorial Update copyright for 2016 2016-01-02 13:33:40 -05:00
.gitignore
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS
Makefile Create src/fe_utils/, and move stuff into there from pg_dump's dumputils. 2016-03-24 15:55:57 -04:00
Makefile.global.in Create src/fe_utils/, and move stuff into there from pg_dump's dumputils. 2016-03-24 15:55:57 -04:00
Makefile.shlib AIX: Link TRANSFORM modules with their dependencies. 2015-07-15 21:00:26 -04:00
nls-global.mk Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00