aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-07-07 20:25:22 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-07-07 20:25:22 +0000
commit848268c58a030e67b98125780f62391d8b0a3fc6 (patch)
treef3272de803869e5d88daf49f9d1e9174436073fa /src/backend/access/gist/gistget.c
parenta2fde114101d4296646d1de462b32678ca199c31 (diff)
downloadpostgresql-848268c58a030e67b98125780f62391d8b0a3fc6.tar.gz
postgresql-848268c58a030e67b98125780f62391d8b0a3fc6.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/gistget.c')
0 files changed, 0 insertions, 0 deletions