]> granicus.if.org Git - postgresql/commit
Add an 'enable_material' GUC.
authorRobert Haas <rhaas@postgresql.org>
Mon, 19 Apr 2010 00:55:26 +0000 (00:55 +0000)
committerRobert Haas <rhaas@postgresql.org>
Mon, 19 Apr 2010 00:55:26 +0000 (00:55 +0000)
commit5b89ef384c7719478bb08b0c771dcbfdc51d507e
tree7e437e5f49ef36b3b083a1790d14eb3092a4e6b6
parent9287567effc81d3892c2a9889dbf99982c6cce58
Add an 'enable_material' GUC.

The logic for determining whether to materialize has been significantly
overhauled for 9.0.  In case there should be any doubt about whether
materialization is a win in any particular case, this should provide a
convenient way of seeing what happens without it; but even with enable_material
turned off, we still materialize in cases where it is required for
correctness.

Thanks to Tom Lane for the review.
doc/src/sgml/config.sgml
src/backend/optimizer/path/costsize.c
src/backend/optimizer/path/joinpath.c
src/backend/optimizer/plan/subselect.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/optimizer/cost.h
src/test/regress/expected/rangefuncs.out