mirror of
https://github.com/postgres/postgres.git
synced 2026-04-28 09:38:27 -04:00
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
40 lines
1.2 KiB
C
40 lines
1.2 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* geqo_pool.h
|
|
* pool representation in optimizer/geqo
|
|
*
|
|
* 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 $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
/* contributed by:
|
|
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|
|
* Martin Utesch * Institute of Automatic Control *
|
|
= = University of Mining and Technology =
|
|
* utesch@aut.tu-freiberg.de * Freiberg, Germany *
|
|
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|
|
*/
|
|
|
|
|
|
#ifndef GEQO_POOL_H
|
|
#define GEQO_POOL_H
|
|
|
|
#include "optimizer/geqo_gene.h"
|
|
#include "nodes/parsenodes.h"
|
|
|
|
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 Chromosome *alloc_chromo(int string_length);
|
|
extern void free_chromo(Chromosome *chromo);
|
|
|
|
extern void spread_chromo(Chromosome *chromo, Pool *pool);
|
|
|
|
extern void sort_pool(Pool *pool);
|
|
|
|
#endif /* GEQO_POOL_H */
|