aboutsummaryrefslogtreecommitdiff
path: root/contrib/rtree_gist/sql/rtree_gist.sql
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-07-07 20:25:30 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-07-07 20:25:30 +0000
commit756aeaf0f3ca5e17908ae728b20eadea85e76565 (patch)
tree5121b117f2f725dfa5b35f0db4df49c0742bb362 /contrib/rtree_gist/sql/rtree_gist.sql
parent2d94cf6bfe9cf356e086ee6d6a717cc48949f41d (diff)
downloadpostgresql-756aeaf0f3ca5e17908ae728b20eadea85e76565.tar.gz
postgresql-756aeaf0f3ca5e17908ae728b20eadea85e76565.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 'contrib/rtree_gist/sql/rtree_gist.sql')
0 files changed, 0 insertions, 0 deletions