summaryrefslogtreecommitdiff
path: root/src/backend/optimizer/path/allpaths.c
diff options
context:
space:
mode:
authorVadim B. Mikheev <vadim4o@yahoo.com>1997-06-10 07:55:47 +0000
committerVadim B. Mikheev <vadim4o@yahoo.com>1997-06-10 07:55:47 +0000
commitf4161503e6ae161dffc01f5789acae4f49fc050b (patch)
treee8abbf0fffcbbdd42e28e16b6b2bbf75e4b49c74 /src/backend/optimizer/path/allpaths.c
parentcbb4213af460c9112c2b74b3051809caac38322a (diff)
if ( rel->size <= 0 )
rel->size = compute_rel_size(rel);
Diffstat (limited to 'src/backend/optimizer/path/allpaths.c')
-rw-r--r--src/backend/optimizer/path/allpaths.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c
index 506bab263a0..d27b31cfbd7 100644
--- a/src/backend/optimizer/path/allpaths.c
+++ b/src/backend/optimizer/path/allpaths.c
@@ -7,7 +7,7 @@
*
*
* 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)
foreach(x, new_rels) {
rel = (Rel*)lfirst(x);
-#if 0 /* compute_joinrel_size already called by prune_rel_paths */
- rel->size = compute_rel_size(rel);
-#endif
+ if ( rel->size <= 0 )
+ rel->size = compute_rel_size(rel);
rel->width = compute_rel_width(rel);
/*#define OPTIMIZER_DEBUG*/