summaryrefslogtreecommitdiff
path: root/src/backend/optimizer/geqo/geqo_main.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2001-06-03 14:53:56 +0000
committerPeter Eisentraut <peter_e@gmx.net>2001-06-03 14:53:56 +0000
commit12c1552066cac81a6b93062e8966cfa0d2d56af5 (patch)
tree44fdd9a63ca2c0b2d5b1497b30fe8581da5f1505 /src/backend/optimizer/geqo/geqo_main.c
parent277a47ad0febca0eeaf09b695639df7d93e3c628 (diff)
downloadpostgresql-12c1552066cac81a6b93062e8966cfa0d2d56af5.tar.gz
Mark many strings in backend not covered by elog for translation. Also,
make strings in xlog.c look more like English and less like binary noise.
Diffstat (limited to 'src/backend/optimizer/geqo/geqo_main.c')
-rw-r--r--src/backend/optimizer/geqo/geqo_main.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/backend/optimizer/geqo/geqo_main.c b/src/backend/optimizer/geqo/geqo_main.c
index 86b5b33409..61543985c5 100644
--- a/src/backend/optimizer/geqo/geqo_main.c
+++ b/src/backend/optimizer/geqo/geqo_main.c
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_main.c,v 1.27 2001/03/22 03:59:33 momjian Exp $
+ * $Id: geqo_main.c,v 1.28 2001/06/03 14:53:56 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -217,24 +217,22 @@ geqo(Query *root, int number_of_rels, List *initial_rels)
#if defined(ERX) && defined(GEQO_DEBUG)
if (edge_failures != 0)
- fprintf(stdout, "\nFailures: %d Avg: %d\n", edge_failures, (int) generation / edge_failures);
-
+ elog(DEBUG, "[GEQO] failures: %d, average: %d",
+ edge_failures, (int) generation / edge_failures);
else
- fprintf(stdout, "No edge failures detected.\n");
+ elog(DEBUG, "[GEQO] No edge failures detected.");
#endif
#if defined(CX) && defined(GEQO_DEBUG)
if (mutations != 0)
- fprintf(stdout, "\nMutations: %d Generations: %d\n", mutations, generation);
-
+ elog(DEBUG, "[GEQO] mutations: %d, generations: %d", mutations, generation);
else
- fprintf(stdout, "No mutations processed.\n");
+ elog(DEBUG, "[GEQO] No mutations processed.");
#endif
#ifdef GEQO_DEBUG
- fprintf(stdout, "\n");
print_pool(stdout, pool, 0, pool_size - 1);
#endif