*** pgsql/src/backend/optimizer/path/joinpath.c 2010/03/28 22:59:32 1.132 --- pgsql/src/backend/optimizer/path/joinpath.c 2010/04/19 00:55:25 1.133 *************** *** 8,14 **** * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/optimizer/path/joinpath.c,v 1.131 2010/03/22 13:57:15 tgl Exp $ * *------------------------------------------------------------------------- */ --- 8,14 ---- * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/optimizer/path/joinpath.c,v 1.132 2010/03/28 22:59:32 tgl Exp $ * *------------------------------------------------------------------------- */ *************** match_unsorted_outer(PlannerInfo *root, *** 437,446 **** else if (nestjoinOK) { /* ! * Consider materializing the cheapest inner path, unless it is one ! * that materializes its output anyway. */ ! if (!ExecMaterializesOutput(inner_cheapest_total->pathtype)) matpath = (Path *) create_material_path(innerrel, inner_cheapest_total); --- 437,448 ---- else if (nestjoinOK) { /* ! * Consider materializing the cheapest inner path, unless ! * enable_material is off or the path in question materializes its ! * output anyway. */ ! if (enable_material && ! !ExecMaterializesOutput(inner_cheapest_total->pathtype)) matpath = (Path *) create_material_path(innerrel, inner_cheapest_total);