git.postgresql.org Git - postgresql.git/commit
Mon, 7 Jul 2008 20:24:55 +0000 (20:24 +0000)
Mon, 7 Jul 2008 20:24:55 +0000 (20:24 +0000)
commit 170063cd1ee1fdac0a8e2bf103f3e8f65306db17
Fix estimate_num_groups() to assume that GROUP BY expressions yielding boolean
results always contribute two groups, regardless of the expression contents.
This is very substantially more accurate than the regular heuristic for
certain boolean tests like "col IS NULL". Per gripe from Sam Mason.
Back-patch to all supported releases, since the behavior of
estimate_num_groups() hasn't changed all that much since 7.4.
This is the main PostgreSQL git repository.
RSS
Atom