Commit f4161503 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

if ( rel->size <= 0 )

            rel->size = compute_rel_size(rel);
parent cbb4213a
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.9 1997/06/05 09:33:50 vadim Exp $ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.10 1997/06/10 07:55:45 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -216,9 +216,8 @@ find_join_paths(Query *root, List *outer_rels, int levels_left) ...@@ -216,9 +216,8 @@ find_join_paths(Query *root, List *outer_rels, int levels_left)
foreach(x, new_rels) { foreach(x, new_rels) {
rel = (Rel*)lfirst(x); rel = (Rel*)lfirst(x);
#if 0 /* compute_joinrel_size already called by prune_rel_paths */ if ( rel->size <= 0 )
rel->size = compute_rel_size(rel); rel->size = compute_rel_size(rel);
#endif
rel->width = compute_rel_width(rel); rel->width = compute_rel_width(rel);
/*#define OPTIMIZER_DEBUG*/ /*#define OPTIMIZER_DEBUG*/
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.2 1996/11/08 05:57:01 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.3 1997/06/10 07:55:47 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -101,6 +101,7 @@ prune_rel_paths(List *rel_list) ...@@ -101,6 +101,7 @@ prune_rel_paths(List *rel_list)
foreach(x, rel_list) { foreach(x, rel_list) {
rel = (Rel*)lfirst(x); rel = (Rel*)lfirst(x);
rel->size = 0;
foreach(y, rel->pathlist) { foreach(y, rel->pathlist) {
path = (Path*)lfirst(y); path = (Path*)lfirst(y);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment