postgresql/src
Tom Lane 8e992b0186 Fix booltestsel() for case where we have NULL stats but not MCV stats.
In a boolean column that contains mostly nulls, ANALYZE might not find
enough non-null values to populate the most-common-values stats,
but it would still create a pg_statistic entry with stanullfrac set.
The logic in booltestsel() for this situation did the wrong thing for
"col IS NOT TRUE" and "col IS NOT FALSE" tests, forgetting that null
values would satisfy these tests (so that the true selectivity would
be close to one, not close to zero).  Per bug #8274.

Fix by Andrew Gierth, some comment-smithing by me.
2013-07-24 00:44:59 -04:00
..
backend Fix booltestsel() for case where we have NULL stats but not MCV stats. 2013-07-24 00:44:59 -04:00
bin Mark index-constraint comments with correct dependency in pg_dump. 2013-06-27 13:55:09 -04:00
include Change post-rewriter representation of dropped columns in joinaliasvars. 2013-07-23 16:23:16 -04:00
interfaces Check for NULL result from strdup 2013-07-23 17:38:31 -04:00
makefiles Make pgxs build executables with the right suffix. 2013-01-19 14:54:29 -05:00
pl Add semicolons to eval'd strings to hide a minor Perl behavioral change. 2013-06-03 14:19:44 -04:00
port Stamp 9.0.13. 2013-04-01 14:25:34 -04:00
template
test Remove unnecessary restrictions about RowExprs in transformAExprIn(). 2013-06-09 18:39:39 -04:00
timezone Update time zone data files to tzdata release 2013b. 2013-03-28 15:26:04 -04:00
tools Properly zero-pad the day-of-year part of the win32 build number 2013-01-31 15:08:43 +01:00
tutorial
.gitignore
bcc32.mak
DEVELOPERS
Makefile
Makefile.global.in Add mode where contrib installcheck runs each module in a separately named database. 2012-12-11 11:48:00 -05:00
Makefile.shlib
nls-global.mk
win32.mak