Save another little bit of planner overhead on simple queries, by having
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 24 Nov 2007 19:08:51 +0000 (19:08 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 24 Nov 2007 19:08:51 +0000 (19:08 +0000)
commit69bd15cf6dfbf02ef81eccd15ee609c53e58a2b4
tree7aa3b6c4d46101b5280214b5ec0b5fbbf297cd2d
parentfa463c7562ce27423f15de106617d7d6432212b3
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.
src/backend/optimizer/path/clausesel.c