postgresql/src/backend/utils
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
..
adt Fix thinko in estimate_num_groups 2017-03-27 13:14:23 -03:00
cache Update some obsolete comments. 2017-03-26 11:36:46 -04:00
error Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
fmgr Add a direct function call mechanism using the caller's context. 2017-03-21 08:57:46 -04:00
hash Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
init Show more processes in pg_stat_activity. 2017-03-26 22:02:22 -04:00
mb ICU support 2017-03-23 15:28:48 -04:00
misc Change default of log_directory to 'log' 2017-03-27 10:34:33 -04:00
mmgr Fix typo in comment 2017-03-24 17:20:55 -03:00
resowner Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
sort Don't create "holes" in BufFiles, in the new logtape code. 2017-02-01 12:17:38 +02:00
time Reverting 42b4b0b241 2017-03-24 17:56:17 +00:00
.gitignore Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
Gen_dummy_probes.pl Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Gen_dummy_probes.sed Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Gen_fmgrtab.pl Clean up Perl code according to perlcritic 2017-03-27 08:18:22 -04:00
Makefile Fix parallel make issue with new fmgrprotos.h 2017-01-23 15:36:27 -05:00
errcodes.txt Use SQL standard error code for nextval 2017-03-09 10:56:44 -05:00
generate-errcodes.pl Clean up Perl code according to perlcritic 2017-03-27 08:18:22 -04:00
probes.d Rename dtrace probes for ongoing xlog -> wal conversion. 2017-02-09 16:40:19 -05:00