Fix xslt_process() to ensure that it inserts a NULL terminator after the
[PostgreSQL.git] / src / include / optimizer / geqo_gene.h
blobcd2fdf45c7fabe46fe31456953f3f590fecab740
1 /*-------------------------------------------------------------------------
3 * geqo_gene.h
4 * genome representation in optimizer/geqo
6 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * $PostgreSQL$
11 *-------------------------------------------------------------------------
14 /* contributed by:
15 =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
16 * Martin Utesch * Institute of Automatic Control *
17 = = University of Mining and Technology =
18 * utesch@aut.tu-freiberg.de * Freiberg, Germany *
19 =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
23 #ifndef GEQO_GENE_H
24 #define GEQO_GENE_H
26 #include "nodes/nodes.h"
28 /* we presume that int instead of Relid
29 is o.k. for Gene; so don't change it! */
30 typedef int Gene;
32 typedef struct Chromosome
34 Gene *string;
35 Cost worth;
36 } Chromosome;
38 typedef struct Pool
40 Chromosome *data;
41 int size;
42 int string_length;
43 } Pool;
45 #endif /* GEQO_GENE_H */