1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-07 12:02:30 +03:00

Optimizer cleanup.

This commit is contained in:
Bruce Momjian
1999-02-12 17:25:05 +00:00
parent c0d17c7aee
commit ad4b27ac3f
13 changed files with 88 additions and 84 deletions

View File

@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_misc.c,v 1.15 1999/02/12 06:43:26 momjian Exp $
* $Id: geqo_misc.c,v 1.16 1999/02/12 17:24:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -158,7 +158,7 @@ void
geqo_print_path(Query *root, Path *path, int indent)
{
char *ptype = NULL;
NestPath *jp;
JoinPath *jp;
bool join = false;
int i;
@@ -194,7 +194,7 @@ geqo_print_path(Query *root, Path *path, int indent)
{
int size = path->parent->size;
jp = (NestPath *) path;
jp = (JoinPath *) path;
printf("%s size=%d cost=%f\n", ptype, size, path->path_cost);
switch (nodeTag(path))
{
@@ -203,7 +203,7 @@ geqo_print_path(Query *root, Path *path, int indent)
for (i = 0; i < indent + 1; i++)
printf("\t");
printf(" clauses=(");
geqo_print_joinclauses(root, ((NestPath *) path)->pathinfo);
geqo_print_joinclauses(root, ((JoinPath *) path)->pathinfo);
printf(")\n");
if (nodeTag(path) == T_MergePath)