mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Commit to match discussed elog() changes. Only update is that LOG is
now just below FATAL in server_min_messages. Added more text to
highlight ordering difference between it and client_min_messages.
---------------------------------------------------------------------------
REALLYFATAL => PANIC
STOP => PANIC
New INFO level the prints to client by default
New LOG level the prints to server log by default
Cause VACUUM information to print only to the client
NOTICE => INFO where purely information messages are sent
DEBUG => LOG for purely server status messages
DEBUG removed, kept as backward compatible
DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1 added
DebugLvl removed in favor of new DEBUG[1-5] symbols
New server_min_messages GUC parameter with values:
DEBUG[5-1], INFO, NOTICE, ERROR, LOG, FATAL, PANIC
New client_min_messages GUC parameter with values:
DEBUG[5-1], LOG, INFO, NOTICE, ERROR, FATAL, PANIC
Server startup now logged with LOG instead of DEBUG
Remove debug_level GUC parameter
elog() numbers now start at 10
Add test to print error message if older elog() values are passed to elog()
Bootstrap mode now has a -d that requires an argument, like postmaster
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* geqo_erx.c
|
||||
* edge recombination crossover [ER]
|
||||
*
|
||||
* $Id: geqo_erx.c,v 1.16 2001/10/25 05:49:31 momjian Exp $
|
||||
* $Id: geqo_erx.c,v 1.17 2002/03/02 21:39:26 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -419,7 +419,7 @@ edge_failure(Gene *gene, int index, Edge *edge_table, int num_gene)
|
||||
}
|
||||
}
|
||||
|
||||
elog(DEBUG, "edge_failure(1): no edge found via random decision and total_edges == 4");
|
||||
elog(LOG, "edge_failure(1): no edge found via random decision and total_edges == 4");
|
||||
}
|
||||
|
||||
else
|
||||
@@ -444,7 +444,7 @@ edge_failure(Gene *gene, int index, Edge *edge_table, int num_gene)
|
||||
}
|
||||
}
|
||||
|
||||
elog(DEBUG, "edge_failure(2): no edge found via random decision and remainig edges");
|
||||
elog(LOG, "edge_failure(2): no edge found via random decision and remainig edges");
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -462,7 +462,7 @@ edge_failure(Gene *gene, int index, Edge *edge_table, int num_gene)
|
||||
if (edge_table[i].unused_edges >= 0)
|
||||
return (Gene) i;
|
||||
|
||||
elog(DEBUG, "edge_failure(3): no edge found via looking for the last ununsed point");
|
||||
elog(LOG, "edge_failure(3): no edge found via looking for the last ununsed point");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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.29 2001/10/25 05:49:31 momjian Exp $
|
||||
* $Id: geqo_main.c,v 1.30 2002/03/02 21:39:26 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -120,30 +120,30 @@ geqo(Query *root, int number_of_rels, List *initial_rels)
|
||||
daddy = alloc_chromo(pool->string_length);
|
||||
|
||||
#if defined (ERX)
|
||||
elog(DEBUG, "geqo_main: using edge recombination crossover [ERX]");
|
||||
elog(LOG, "geqo_main: using edge recombination crossover [ERX]");
|
||||
/* allocate edge table memory */
|
||||
edge_table = alloc_edge_table(pool->string_length);
|
||||
#elif defined(PMX)
|
||||
elog(DEBUG, "geqo_main: using partially matched crossover [PMX]");
|
||||
elog(LOG, "geqo_main: using partially matched crossover [PMX]");
|
||||
/* allocate chromosome kid memory */
|
||||
kid = alloc_chromo(pool->string_length);
|
||||
#elif defined(CX)
|
||||
elog(DEBUG, "geqo_main: using cycle crossover [CX]");
|
||||
elog(LOG, "geqo_main: using cycle crossover [CX]");
|
||||
/* allocate city table memory */
|
||||
kid = alloc_chromo(pool->string_length);
|
||||
city_table = alloc_city_table(pool->string_length);
|
||||
#elif defined(PX)
|
||||
elog(DEBUG, "geqo_main: using position crossover [PX]");
|
||||
elog(LOG, "geqo_main: using position crossover [PX]");
|
||||
/* allocate city table memory */
|
||||
kid = alloc_chromo(pool->string_length);
|
||||
city_table = alloc_city_table(pool->string_length);
|
||||
#elif defined(OX1)
|
||||
elog(DEBUG, "geqo_main: using order crossover [OX1]");
|
||||
elog(LOG, "geqo_main: using order crossover [OX1]");
|
||||
/* allocate city table memory */
|
||||
kid = alloc_chromo(pool->string_length);
|
||||
city_table = alloc_city_table(pool->string_length);
|
||||
#elif defined(OX2)
|
||||
elog(DEBUG, "geqo_main: using order crossover [OX2]");
|
||||
elog(LOG, "geqo_main: using order crossover [OX2]");
|
||||
/* allocate city table memory */
|
||||
kid = alloc_chromo(pool->string_length);
|
||||
city_table = alloc_city_table(pool->string_length);
|
||||
@@ -214,18 +214,18 @@ geqo(Query *root, int number_of_rels, List *initial_rels)
|
||||
|
||||
#if defined(ERX) && defined(GEQO_DEBUG)
|
||||
if (edge_failures != 0)
|
||||
elog(DEBUG, "[GEQO] failures: %d, average: %d",
|
||||
elog(LOG, "[GEQO] failures: %d, average: %d",
|
||||
edge_failures, (int) generation / edge_failures);
|
||||
else
|
||||
elog(DEBUG, "[GEQO] No edge failures detected.");
|
||||
elog(LOG, "[GEQO] No edge failures detected.");
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(CX) && defined(GEQO_DEBUG)
|
||||
if (mutations != 0)
|
||||
elog(DEBUG, "[GEQO] mutations: %d, generations: %d", mutations, generation);
|
||||
elog(LOG, "[GEQO] mutations: %d, generations: %d", mutations, generation);
|
||||
else
|
||||
elog(DEBUG, "[GEQO] No mutations processed.");
|
||||
elog(LOG, "[GEQO] No mutations processed.");
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.112 2001/10/25 05:49:32 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.113 2002/03/02 21:39:26 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1299,7 +1299,7 @@ pred_test_simple_clause(Expr *predicate, Node *clause)
|
||||
if (!HeapTupleIsValid(tuple))
|
||||
{
|
||||
/* this probably shouldn't fail? */
|
||||
elog(DEBUG, "pred_test_simple_clause: unknown test_op");
|
||||
elog(LOG, "pred_test_simple_clause: unknown test_op");
|
||||
return false;
|
||||
}
|
||||
aform = (Form_pg_amop) GETSTRUCT(tuple);
|
||||
@@ -1327,7 +1327,7 @@ pred_test_simple_clause(Expr *predicate, Node *clause)
|
||||
|
||||
if (isNull)
|
||||
{
|
||||
elog(DEBUG, "pred_test_simple_clause: null test result");
|
||||
elog(LOG, "pred_test_simple_clause: null test result");
|
||||
return false;
|
||||
}
|
||||
return DatumGetBool(test_result);
|
||||
|
||||
Reference in New Issue
Block a user