aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/tsquery_gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-04-12 01:59:51 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-04-12 01:59:51 -0400
commit0ae8b300388c2a3eaf90e6e6f13d6be1f4d4ac2d (patch)
tree38e09b12cbf738056841f55818cf4c08afe04a62 /src/backend/utils/adt/tsquery_gist.c
parent8db00d417541da5ab4998686315516aaee568952 (diff)
downloadpostgresql-0ae8b300388c2a3eaf90e6e6f13d6be1f4d4ac2d.tar.gz
postgresql-0ae8b300388c2a3eaf90e6e6f13d6be1f4d4ac2d.zip
Be more wary of missing statistics in eqjoinsel_semi().
In particular, if we don't have real ndistinct estimates for both sides, fall back to assuming that half of the left-hand rows have join partners. This is what was done in 8.2 and 8.3 (cf nulltestsel() in those versions). It's pretty stupid but it won't lead us to think that an antijoin produces no rows out, as seen in recent example from Uwe Schroeder.
Diffstat (limited to 'src/backend/utils/adt/tsquery_gist.c')
0 files changed, 0 insertions, 0 deletions