OSDN Git Service

Further tweaking of logic that decides when to materialize an uncorrelated
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Mar 2000 23:53:41 +0000 (23:53 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Mar 2000 23:53:41 +0000 (23:53 +0000)
commite8be8ffaf0d627a853814ec6105d9d719b500de9
tree848f88e9b699c1d38c16d6e649dcd961e28983b1
parentbbe1ff740487aa8ce73d2ef34480f294118d92aa
Further tweaking of logic that decides when to materialize an uncorrelated
subplan: do it if subplan has subplans itself, and always do it if the
subplan is an indexscan.  (I originally set it to materialize an indexscan
only if the indexqual is fairly selective, but I dunno what I was
thinking ... an unselective indexscan is still expensive ...)
src/backend/optimizer/plan/subselect.c