postgresql/src
Alvaro Herrera 1f171a1803 Fix thinko in estimate_num_groups
The code for the reworked n-distinct estimation on commit 7b504eb282 was
written differently in a previous version of the patch, prior to commit;
on rewriting it, we missed updating an initializer.  This caused the
code to (mistakenly) apply a fudge factor even in the case where a
single value is applied, leading to incorrect results.

This means that the 'relvarcount' variable name is now wrong.  Add a
comment to try and make the situation clearer, and remove an incorrect
comment I added.

Problem noticed, and code patch, by Tomas Vondra.  Additional commentary
by Álvaro.
2017-03-27 13:14:23 -03:00
..
backend Fix thinko in estimate_num_groups 2017-03-27 13:14:23 -03:00
bin Clean up Perl code according to perlcritic 2017-03-27 08:18:22 -04:00
common Sync pg_dump and pg_dumpall output 2017-03-22 10:20:13 -04:00
fe_utils Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
include Support hashed aggregation with grouping sets. 2017-03-27 04:20:54 +01:00
interfaces Clean up Perl code according to perlcritic 2017-03-27 08:18:22 -04:00
makefiles Try to fix non-MSVC Windows builds in the wake of logical replication. 2017-01-20 12:51:31 -05:00
pl PL/Python: Add cursor and execute methods to plan object 2017-03-27 11:37:22 -04:00
port Fix and simplify check for whether we're running as Windows service. 2017-03-17 11:14:01 +02:00
template Remove "sco" and "unixware" ports. 2016-10-11 11:26:04 -04:00
test Rework the stats_ext test 2017-03-27 12:43:04 -03:00
timezone Remove useless duplicate inclusions of system header files. 2017-02-25 16:12:55 -05:00
tools Clean up Perl code according to perlcritic 2017-03-27 08:18:22 -04:00
tutorial Recommend wrappers of PG_DETOAST_DATUM_PACKED(). 2017-03-12 19:35:33 -04:00
.gitignore
DEVELOPERS
Makefile Remove redundant coverage target 2017-02-17 08:56:57 -05:00
Makefile.global.in ICU support 2017-03-23 15:28:48 -04:00
Makefile.shlib Fix typos in comments. 2017-02-06 11:33:58 +02:00
bcc32.mak
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00
win32.mak