aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-07-07 20:25:14 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-07-07 20:25:14 +0000
commit1b3dfb041a63d0f8d4ef8618b04b80fcedb8b4d7 (patch)
treef7e7b46f9fb250d51576bdc4888fc10329773cd9 /src/backend/access/gist/gistutil.c
parent495d327b114a42f547cc13266a25ee98ab84cc84 (diff)
downloadpostgresql-1b3dfb041a63d0f8d4ef8618b04b80fcedb8b4d7.tar.gz
postgresql-1b3dfb041a63d0f8d4ef8618b04b80fcedb8b4d7.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/gistutil.c')
0 files changed, 0 insertions, 0 deletions