Save another little bit of planner overhead on simple queries, by having

Tom Lane <tgl@sss.pgh.pa.us>

Commit: aca467b9b343dccd52a8c8da74ffcf70559fb468
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-11-24T19:08:51Z
Releases: 8.3.0
Save another little bit of planner overhead on simple queries, by having
clauselist_selectivity skip some analysis that's useless when there's only
one clause in the given list.  Actually this can win even for not-so-simple
queries, because we also apply clauselist_selectivity to sublists such as the
quals matching an index; which are likely to have only a single entry even
when the total query is quite complicated.

Files

PathChange+/−
src/backend/optimizer/path/clausesel.c modified +9 −1