PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | GeqoPrivateData |
Macros | |
#define | ERX |
#define | DEFAULT_GEQO_EFFORT 5 |
#define | MIN_GEQO_EFFORT 1 |
#define | MAX_GEQO_EFFORT 10 |
#define | DEFAULT_GEQO_SELECTION_BIAS 2.0 |
#define | MIN_GEQO_SELECTION_BIAS 1.5 |
#define | MAX_GEQO_SELECTION_BIAS 2.0 |
Functions | |
RelOptInfo * | geqo (PlannerInfo *root, int number_of_rels, List *initial_rels) |
Cost | geqo_eval (PlannerInfo *root, Gene *tour, int num_gene) |
RelOptInfo * | gimme_tree (PlannerInfo *root, Gene *tour, int num_gene) |
Variables | |
PGDLLIMPORT int | Geqo_effort |
PGDLLIMPORT int | Geqo_pool_size |
PGDLLIMPORT int | Geqo_generations |
PGDLLIMPORT double | Geqo_selection_bias |
PGDLLIMPORT double | Geqo_seed |
RelOptInfo* geqo | ( | PlannerInfo * | root, |
int | number_of_rels, | ||
List * | initial_rels | ||
) |
Definition at line 72 of file geqo_main.c.
References alloc_chromo(), alloc_city_table(), alloc_edge_table(), alloc_pool(), cx(), Pool::data, DEBUG1, DEBUG2, elog, ERROR, free_chromo(), free_city_table(), free_edge_table(), free_pool(), geqo_eval(), geqo_mutation(), Geqo_seed, geqo_selection(), Geqo_selection_bias, geqo_set_seed(), gimme_edge_table(), gimme_number_generations(), gimme_pool_size(), gimme_tour(), gimme_tree(), LOG, ox1(), ox2(), pmx(), px(), random_init_pool(), root, sort_pool(), spread_chromo(), generate_unaccent_rules::stdout, Chromosome::string, Pool::string_length, and Chromosome::worth.
Referenced by make_rel_from_joinlist().
Cost geqo_eval | ( | PlannerInfo * | root, |
Gene * | tour, | ||
int | num_gene | ||
) |
Definition at line 57 of file geqo_eval.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, Assert, RelOptInfo::cheapest_total_path, CurrentMemoryContext, gimme_tree(), list_length(), list_truncate(), MemoryContextDelete(), MemoryContextSwitchTo(), root, and Path::total_cost.
Referenced by geqo(), and random_init_pool().
RelOptInfo* gimme_tree | ( | PlannerInfo * | root, |
Gene * | tour, | ||
int | num_gene | ||
) |
Definition at line 163 of file geqo_eval.c.
References for(), Clump::joinrel, lfirst, linitial, list_length(), list_nth(), merge_clump(), NIL, palloc(), root, and Clump::size.
Referenced by geqo(), and geqo_eval().
|
extern |
Definition at line 44 of file geqo_main.c.
Referenced by gimme_pool_size().
|
extern |
Definition at line 46 of file geqo_main.c.
Referenced by gimme_number_generations().
|
extern |
Definition at line 45 of file geqo_main.c.
Referenced by gimme_pool_size().
|
extern |
Definition at line 48 of file geqo_main.c.
Referenced by geqo().
|
extern |
Definition at line 47 of file geqo_main.c.
Referenced by geqo().