aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-07-07 20:24:55 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-07-07 20:24:55 +0000
commit170063cd1ee1fdac0a8e2bf103f3e8f65306db17 (patch)
tree89f4a37789c840d53146731f4d5d231682d309bd /src/backend/access/gist/gistxlog.c
parentc50838533bf4cca813e0a6f60808041f551ce606 (diff)
downloadpostgresql-170063cd1ee1fdac0a8e2bf103f3e8f65306db17.tar.gz
postgresql-170063cd1ee1fdac0a8e2bf103f3e8f65306db17.zip
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.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions