summaryrefslogtreecommitdiff
path: root/src/include/optimizer/geqo_pool.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-09-19 18:42:34 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-09-19 18:42:34 +0000
commitba2ea6e0f5f270571e7f661cd2c7645160a9562a (patch)
tree7dc8d44926b39a3afe68798e8514bbf43161a7e2 /src/include/optimizer/geqo_pool.h
parent457ac0331cd3e28ecc5d783e7504645837c41a1d (diff)
downloadpostgresql-ba2ea6e0f5f270571e7f661cd2c7645160a9562a.tar.gz
Fix GEQO optimizer to work correctly with new outer-join-capable
query representation. Note that GEQO_RELS setting is now interpreted as the number of top-level items in the FROM list, not necessarily the number of relations in the query. This seems appropriate since we are only doing join-path searching over the top-level items.
Diffstat (limited to 'src/include/optimizer/geqo_pool.h')
-rw-r--r--src/include/optimizer/geqo_pool.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/optimizer/geqo_pool.h b/src/include/optimizer/geqo_pool.h
index f0791039fb..d96e67139b 100644
--- a/src/include/optimizer/geqo_pool.h
+++ b/src/include/optimizer/geqo_pool.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_pool.h,v 1.9 2000/01/26 05:58:20 momjian Exp $
+ * $Id: geqo_pool.h,v 1.10 2000/09/19 18:42:32 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -29,7 +29,8 @@
extern Pool *alloc_pool(int pool_size, int string_length);
extern void free_pool(Pool *pool);
-extern void random_init_pool(Query *root, Pool *pool, int strt, int stop);
+extern void random_init_pool(Query *root, List *initial_rels,
+ Pool *pool, int strt, int stop);
extern Chromosome *alloc_chromo(int string_length);
extern void free_chromo(Chromosome *chromo);