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