mirror of
https://github.com/postgres/postgres.git
synced 2026-02-20 00:10:16 -05:00
node now does its own grouping of the input rows, and has no need for a preceding GROUP node in the plan pipeline. This allows elimination of the misnamed tuplePerGroup option for GROUP, and actually saves more code in nodeGroup.c than it costs in nodeAgg.c, as well as being presumably faster. Restructure the API of query_planner so that we do not commit to using a sorted or unsorted plan in query_planner; instead grouping_planner makes the decision. (Right now it isn't any smarter than query_planner was, but that will change as soon as it has the option to select a hash- based aggregation step.) Despite all the hackery, no initdb needed since only in-memory node types changed.
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* geqo_misc.h
|
|
* prototypes for printout routines in optimizer/geqo
|
|
*
|
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: geqo_misc.h,v 1.22 2002/11/06 00:00:45 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
/* contributed by:
|
|
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|
|
* Martin Utesch * Institute of Automatic Control *
|
|
= = University of Mining and Technology =
|
|
* utesch@aut.tu-freiberg.de * Freiberg, Germany *
|
|
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|
|
*/
|
|
|
|
#ifndef GEQO_MISC_H
|
|
#define GEQO_MISC_H
|
|
|
|
#include "optimizer/geqo.h"
|
|
#include "optimizer/geqo_recombination.h"
|
|
#include "nodes/relation.h"
|
|
|
|
#ifdef GEQO_DEBUG
|
|
|
|
extern void print_pool(FILE *fp, Pool *pool, int start, int stop);
|
|
extern void print_gen(FILE *fp, Pool *pool, int generation);
|
|
extern void print_edge_table(FILE *fp, Edge *edge_table, int num_gene);
|
|
|
|
#endif /* GEQO_DEBUG */
|
|
|
|
#endif /* GEQO_MISC_H */
|