Commit 98b6f37e authored by Bruce Momjian's avatar Bruce Momjian

Make debug_ GUC varables output DEBUG1 rather than LOG, and mention in

docs that CLIENT/LOG_MIN_MESSAGES now controls debug_* output location.
Doc changes included.
parent 24daeb8e
...@@ -110,7 +110,7 @@ printarr(ArrayType *a, int num) ...@@ -110,7 +110,7 @@ printarr(ArrayType *a, int num)
initStringInfo(&bbb); initStringInfo(&bbb);
for (l = 0; l < min(num, ARRNELEMS(a)); l++) for (l = 0; l < min(num, ARRNELEMS(a)); l++)
appendStringInfo(&bbb, "%d ", d[l]); appendStringInfo(&bbb, "%d ", d[l]);
elog(DEBUG3, "\t\t%s", bbb.data); elog(DEBUG4, "\t\t%s", bbb.data);
pfree(bbb.data); pfree(bbb.data);
} }
static void static void
...@@ -122,7 +122,7 @@ printbitvec(BITVEC bv) ...@@ -122,7 +122,7 @@ printbitvec(BITVEC bv)
str[SIGLENBIT] = '\0'; str[SIGLENBIT] = '\0';
LOOPBIT(str[i] = (GETBIT(bv, i)) ? '1' : '0'); LOOPBIT(str[i] = (GETBIT(bv, i)) ? '1' : '0');
elog(DEBUG3, "BV: %s", str); elog(DEBUG4, "BV: %s", str);
} }
#endif #endif
...@@ -589,7 +589,7 @@ inner_int_contains(ArrayType *a, ArrayType *b) ...@@ -589,7 +589,7 @@ inner_int_contains(ArrayType *a, ArrayType *b)
db = ARRPTR(b); db = ARRPTR(b);
#ifdef GIST_DEBUG #ifdef GIST_DEBUG
elog(DEBUG3, "contains %d %d", na, nb); elog(DEBUG4, "contains %d %d", na, nb);
#endif #endif
i = j = n = 0; i = j = n = 0;
...@@ -709,7 +709,7 @@ inner_int_overlap(ArrayType *a, ArrayType *b) ...@@ -709,7 +709,7 @@ inner_int_overlap(ArrayType *a, ArrayType *b)
db = ARRPTR(b); db = ARRPTR(b);
#ifdef GIST_DEBUG #ifdef GIST_DEBUG
elog(DEBUG3, "g_int_overlap"); elog(DEBUG4, "g_int_overlap");
#endif #endif
i = j = 0; i = j = 0;
...@@ -1334,7 +1334,7 @@ _int_common_union(bytea *entryvec, int *sizep, formarray unionf) ...@@ -1334,7 +1334,7 @@ _int_common_union(bytea *entryvec, int *sizep, formarray unionf)
ArrayType *tmp; ArrayType *tmp;
#ifdef GIST_DEBUG #ifdef GIST_DEBUG
elog(DEBUG3, "_int_common_union in"); elog(DEBUG4, "_int_common_union in");
#endif #endif
numranges = (VARSIZE(entryvec) - VARHDRSZ) / sizeof(GISTENTRY); numranges = (VARSIZE(entryvec) - VARHDRSZ) / sizeof(GISTENTRY);
...@@ -1355,12 +1355,12 @@ _int_common_union(bytea *entryvec, int *sizep, formarray unionf) ...@@ -1355,12 +1355,12 @@ _int_common_union(bytea *entryvec, int *sizep, formarray unionf)
{ {
pfree(out); pfree(out);
#ifdef GIST_DEBUG #ifdef GIST_DEBUG
elog(DEBUG3, "_int_common_union out1"); elog(DEBUG4, "_int_common_union out1");
#endif #endif
return NULL; return NULL;
} }
#ifdef GIST_DEBUG #ifdef GIST_DEBUG
elog(DEBUG3, "_int_common_union out"); elog(DEBUG4, "_int_common_union out");
#endif #endif
return (out); return (out);
...@@ -1380,7 +1380,7 @@ _int_common_penalty(GISTENTRY *origentry, GISTENTRY *newentry, float *result, ...@@ -1380,7 +1380,7 @@ _int_common_penalty(GISTENTRY *origentry, GISTENTRY *newentry, float *result,
tmp2; tmp2;
#ifdef GIST_DEBUG #ifdef GIST_DEBUG
elog(DEBUG3, "penalty"); elog(DEBUG4, "penalty");
#endif #endif
ud = (*unionf) ((ArrayType *) DatumGetPointer(origentry->key), ud = (*unionf) ((ArrayType *) DatumGetPointer(origentry->key),
(ArrayType *) DatumGetPointer(newentry->key)); (ArrayType *) DatumGetPointer(newentry->key));
...@@ -1390,7 +1390,7 @@ _int_common_penalty(GISTENTRY *origentry, GISTENTRY *newentry, float *result, ...@@ -1390,7 +1390,7 @@ _int_common_penalty(GISTENTRY *origentry, GISTENTRY *newentry, float *result,
pfree(ud); pfree(ud);
#ifdef GIST_DEBUG #ifdef GIST_DEBUG
elog(DEBUG3, "--penalty\t%g", *result); elog(DEBUG4, "--penalty\t%g", *result);
#endif #endif
return (result); return (result);
...@@ -1451,7 +1451,7 @@ _int_common_picksplit(bytea *entryvec, ...@@ -1451,7 +1451,7 @@ _int_common_picksplit(bytea *entryvec,
SPLITCOST *costvector; SPLITCOST *costvector;
#ifdef GIST_DEBUG #ifdef GIST_DEBUG
elog(DEBUG3, "--------picksplit %d", (VARSIZE(entryvec) - VARHDRSZ) / sizeof(GISTENTRY)); elog(DEBUG4, "--------picksplit %d", (VARSIZE(entryvec) - VARHDRSZ) / sizeof(GISTENTRY));
#endif #endif
maxoff = ((VARSIZE(entryvec) - VARHDRSZ) / sizeof(GISTENTRY)) - 2; maxoff = ((VARSIZE(entryvec) - VARHDRSZ) / sizeof(GISTENTRY)) - 2;
...@@ -1609,7 +1609,7 @@ _int_common_picksplit(bytea *entryvec, ...@@ -1609,7 +1609,7 @@ _int_common_picksplit(bytea *entryvec,
v->spl_rdatum = PointerGetDatum(datum_r); v->spl_rdatum = PointerGetDatum(datum_r);
#ifdef GIST_DEBUG #ifdef GIST_DEBUG
elog(DEBUG3, "--------ENDpicksplit %d %d", v->spl_nleft, v->spl_nright); elog(DEBUG4, "--------ENDpicksplit %d %d", v->spl_nleft, v->spl_nright);
#endif #endif
return v; return v;
} }
...@@ -1962,7 +1962,7 @@ static void ...@@ -1962,7 +1962,7 @@ static void
findoprnd(ITEM * ptr, int4 *pos) findoprnd(ITEM * ptr, int4 *pos)
{ {
#ifdef BS_DEBUG #ifdef BS_DEBUG
elog(DEBUG3, (ptr[*pos].type == OPR) ? elog(DEBUG4, (ptr[*pos].type == OPR) ?
"%d %c" : "%d %d ", *pos, ptr[*pos].val); "%d %c" : "%d %d ", *pos, ptr[*pos].val);
#endif #endif
if (ptr[*pos].type == VAL) if (ptr[*pos].type == VAL)
...@@ -2045,7 +2045,7 @@ bqarr_in(PG_FUNCTION_ARGS) ...@@ -2045,7 +2045,7 @@ bqarr_in(PG_FUNCTION_ARGS)
else else
appendStringInfo(&pbuf, "%d ", ptr[i].val); appendStringInfo(&pbuf, "%d ", ptr[i].val);
} }
elog(DEBUG3, "POR: %s", pbuf.data); elog(DEBUG4, "POR: %s", pbuf.data);
pfree(pbuf.data); pfree(pbuf.data);
#endif #endif
......
...@@ -132,7 +132,7 @@ _rserv_log_() ...@@ -132,7 +132,7 @@ _rserv_log_()
GetCurrentTransactionId(), deleted, rel->rd_id, okey); GetCurrentTransactionId(), deleted, rel->rd_id, okey);
if (debug) if (debug)
elog(DEBUG3, "sql: %s", sql); elog(DEBUG4, "sql: %s", sql);
ret = SPI_exec(sql, 0); ret = SPI_exec(sql, 0);
...@@ -153,7 +153,7 @@ _rserv_log_() ...@@ -153,7 +153,7 @@ _rserv_log_()
deleted, okey); deleted, okey);
if (debug) if (debug)
elog(DEBUG3, "sql: %s", sql); elog(DEBUG4, "sql: %s", sql);
ret = SPI_exec(sql, 0); ret = SPI_exec(sql, 0);
...@@ -177,7 +177,7 @@ _rserv_log_() ...@@ -177,7 +177,7 @@ _rserv_log_()
rel->rd_id, GetCurrentTransactionId(), okey); rel->rd_id, GetCurrentTransactionId(), okey);
if (debug) if (debug)
elog(DEBUG3, "sql: %s", sql); elog(DEBUG4, "sql: %s", sql);
ret = SPI_exec(sql, 0); ret = SPI_exec(sql, 0);
......
...@@ -59,7 +59,7 @@ check_primary_key(PG_FUNCTION_ARGS) ...@@ -59,7 +59,7 @@ check_primary_key(PG_FUNCTION_ARGS)
int i; int i;
#ifdef DEBUG_QUERY #ifdef DEBUG_QUERY
elog(DEBUG3, "Check_primary_key Enter Function"); elog(DEBUG4, "Check_primary_key Enter Function");
#endif #endif
/* /*
...@@ -249,7 +249,7 @@ check_foreign_key(PG_FUNCTION_ARGS) ...@@ -249,7 +249,7 @@ check_foreign_key(PG_FUNCTION_ARGS)
r; r;
#ifdef DEBUG_QUERY #ifdef DEBUG_QUERY
elog(DEBUG3, "Check_foreign_key Enter Function"); elog(DEBUG4, "Check_foreign_key Enter Function");
#endif #endif
/* /*
...@@ -453,7 +453,7 @@ check_foreign_key(PG_FUNCTION_ARGS) ...@@ -453,7 +453,7 @@ check_foreign_key(PG_FUNCTION_ARGS)
strcmp(type, "date") && strcmp(type, "timestamp")) == 0) strcmp(type, "date") && strcmp(type, "timestamp")) == 0)
is_char_type = 1; is_char_type = 1;
#ifdef DEBUG_QUERY #ifdef DEBUG_QUERY
elog(DEBUG3, "Check_foreign_key Debug value %s type %s %d", elog(DEBUG4, "Check_foreign_key Debug value %s type %s %d",
nv, type, is_char_type); nv, type, is_char_type);
#endif #endif
...@@ -521,7 +521,7 @@ check_foreign_key(PG_FUNCTION_ARGS) ...@@ -521,7 +521,7 @@ check_foreign_key(PG_FUNCTION_ARGS)
} }
plan->nplans = nrefs; plan->nplans = nrefs;
#ifdef DEBUG_QUERY #ifdef DEBUG_QUERY
elog(DEBUG3, "Check_foreign_key Debug Query is : %s ", sql); elog(DEBUG4, "Check_foreign_key Debug Query is : %s ", sql);
#endif #endif
} }
......
...@@ -449,7 +449,7 @@ static void ...@@ -449,7 +449,7 @@ static void
findoprnd(ITEM * ptr, int4 *pos) findoprnd(ITEM * ptr, int4 *pos)
{ {
#ifdef BS_DEBUG #ifdef BS_DEBUG
elog(DEBUG3, (ptr[*pos].type == OPR) ? elog(DEBUG4, (ptr[*pos].type == OPR) ?
"%d %c" : "%d %d ", *pos, ptr[*pos].val); "%d %c" : "%d %d ", *pos, ptr[*pos].val);
#endif #endif
if (ptr[*pos].type == VAL || ptr[*pos].type == VALTRUE) if (ptr[*pos].type == VAL || ptr[*pos].type == VALTRUE)
...@@ -557,7 +557,7 @@ queryin(char *buf, void (*pushval) (QPRS_STATE *, int, char *, int)) ...@@ -557,7 +557,7 @@ queryin(char *buf, void (*pushval) (QPRS_STATE *, int, char *, int))
sprintf(cur, "%d(%s) ", ptr[i].val, GETOPERAND(query) + ptr[i].distance); sprintf(cur, "%d(%s) ", ptr[i].val, GETOPERAND(query) + ptr[i].distance);
cur = strchr(cur, '\0'); cur = strchr(cur, '\0');
} }
elog(DEBUG3, "POR: %s", pbuf); elog(DEBUG4, "POR: %s", pbuf);
#endif #endif
return query; return query;
...@@ -610,7 +610,7 @@ mqtxt_in(PG_FUNCTION_ARGS) ...@@ -610,7 +610,7 @@ mqtxt_in(PG_FUNCTION_ARGS)
sprintf(cur, "%d(%s) ", ptr[i].val, GETOPERAND(query) + ptr[i].distance); sprintf(cur, "%d(%s) ", ptr[i].val, GETOPERAND(query) + ptr[i].distance);
cur = strchr(cur, '\0'); cur = strchr(cur, '\0');
} }
elog(DEBUG3, "POR: %s", pbuf); elog(DEBUG4, "POR: %s", pbuf);
#endif #endif
pfree(res); pfree(res);
PG_RETURN_POINTER(query); PG_RETURN_POINTER(query);
......
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.181 2003/05/23 16:34:36 momjian Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.182 2003/05/27 17:49:45 momjian Exp $
--> -->
<Chapter Id="runtime"> <Chapter Id="runtime">
...@@ -993,10 +993,13 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -993,10 +993,13 @@ SET ENABLE_SEQSCAN TO OFF;
<listitem> <listitem>
<para> <para>
These options enable various debugging output to be sent to the These options enable various debugging output to be sent to the
server log. For each executed query, they print the resulting parse client or server log. For each executed query, they print the resulting
tree, the query rewriter output, or the execution plan. parse tree, the query rewriter output, or the execution plan.
<option>DEBUG_PRETTY_PRINT</option> indents these displays to <option>DEBUG_PRETTY_PRINT</option> indents these displays to
produce a more readable but much longer output format. produce a more readable but much longer output format.
<option>CLIENT_MIN_MESSAGES</option> or <option>LOG_MIN_MESSAGES</option>
must be <literal>DEBUG1</literal> or lower to send output to the client
or server logs.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -1266,6 +1269,9 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1266,6 +1269,9 @@ SET ENABLE_SEQSCAN TO OFF;
Generates a great amount of debugging output for the Generates a great amount of debugging output for the
<command>LISTEN</command> and <command>NOTIFY</command> <command>LISTEN</command> and <command>NOTIFY</command>
commands. commands.
<option>CLIENT_MIN_MESSAGES</option> or <option>LOG_MIN_MESSAGES</option>
must be <literal>DEBUG1</literal> or lower to send output to the client
or server logs.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.102 2003/03/10 22:28:18 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.103 2003/05/27 17:49:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1925,7 +1925,7 @@ gist_dumptree(Relation r, int level, BlockNumber blk, OffsetNumber coff) ...@@ -1925,7 +1925,7 @@ gist_dumptree(Relation r, int level, BlockNumber blk, OffsetNumber coff)
maxoff = PageGetMaxOffsetNumber(page); maxoff = PageGetMaxOffsetNumber(page);
elog(DEBUG3, "%sPage: %d %s blk: %d maxoff: %d free: %d", pred, elog(DEBUG4, "%sPage: %d %s blk: %d maxoff: %d free: %d", pred,
coff, (opaque->flags & F_LEAF) ? "LEAF" : "INTE", (int) blk, coff, (opaque->flags & F_LEAF) ? "LEAF" : "INTE", (int) blk,
(int) maxoff, PageGetFreeSpace(page)); (int) maxoff, PageGetFreeSpace(page));
...@@ -1935,7 +1935,7 @@ gist_dumptree(Relation r, int level, BlockNumber blk, OffsetNumber coff) ...@@ -1935,7 +1935,7 @@ gist_dumptree(Relation r, int level, BlockNumber blk, OffsetNumber coff)
which = (IndexTuple) PageGetItem(page, iid); which = (IndexTuple) PageGetItem(page, iid);
cblk = ItemPointerGetBlockNumber(&(which->t_tid)); cblk = ItemPointerGetBlockNumber(&(which->t_tid));
#ifdef PRINTTUPLE #ifdef PRINTTUPLE
elog(DEBUG3, "%s Tuple. blk: %d size: %d", pred, (int) cblk, elog(DEBUG4, "%s Tuple. blk: %d size: %d", pred, (int) cblk,
IndexTupleSize(which)); IndexTupleSize(which));
#endif #endif
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.99 2003/02/23 06:17:13 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.100 2003/05/27 17:49:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1193,7 +1193,7 @@ _bt_insert_parent(Relation rel, ...@@ -1193,7 +1193,7 @@ _bt_insert_parent(Relation rel,
BTPageOpaque lpageop; BTPageOpaque lpageop;
if (!InRecovery) if (!InRecovery)
elog(DEBUG1, "_bt_insert_parent: concurrent ROOT page split"); elog(DEBUG2, "_bt_insert_parent: concurrent ROOT page split");
lpageop = (BTPageOpaque) PageGetSpecialPointer(page); lpageop = (BTPageOpaque) PageGetSpecialPointer(page);
/* Find the leftmost page at the next level up */ /* Find the leftmost page at the next level up */
pbuf = _bt_get_endpoint(rel, lpageop->btpo.level + 1, false); pbuf = _bt_get_endpoint(rel, lpageop->btpo.level + 1, false);
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.64 2003/03/04 21:51:20 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.65 2003/05/27 17:49:45 momjian Exp $
* *
* NOTES * NOTES
* Postgres btree pages look like ordinary relation pages. The opaque * Postgres btree pages look like ordinary relation pages. The opaque
...@@ -416,7 +416,7 @@ _bt_getbuf(Relation rel, BlockNumber blkno, int access) ...@@ -416,7 +416,7 @@ _bt_getbuf(Relation rel, BlockNumber blkno, int access)
_bt_pageinit(page, BufferGetPageSize(buf)); _bt_pageinit(page, BufferGetPageSize(buf));
return buf; return buf;
} }
elog(DEBUG1, "_bt_getbuf: FSM returned nonrecyclable page"); elog(DEBUG2, "_bt_getbuf: FSM returned nonrecyclable page");
_bt_relbuf(rel, buf); _bt_relbuf(rel, buf);
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.56 2003/05/14 03:26:00 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.57 2003/05/27 17:49:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -56,7 +56,7 @@ static void ...@@ -56,7 +56,7 @@ static void
do_start() do_start()
{ {
StartTransactionCommand(); StartTransactionCommand();
elog(DEBUG3, "start transaction"); elog(DEBUG4, "start transaction");
} }
...@@ -64,7 +64,7 @@ static void ...@@ -64,7 +64,7 @@ static void
do_end() do_end()
{ {
CommitTransactionCommand(); CommitTransactionCommand();
elog(DEBUG3, "commit transaction"); elog(DEBUG4, "commit transaction");
if (isatty(0)) if (isatty(0))
{ {
printf("bootstrap> "); printf("bootstrap> ");
...@@ -155,7 +155,7 @@ Boot_CreateStmt: ...@@ -155,7 +155,7 @@ Boot_CreateStmt:
{ {
do_start(); do_start();
numattr = 0; numattr = 0;
elog(DEBUG3, "creating%s%s relation %s...", elog(DEBUG4, "creating%s%s relation %s...",
$2 ? " bootstrap" : "", $2 ? " bootstrap" : "",
$3 ? " shared" : "", $3 ? " shared" : "",
LexIDStr($5)); LexIDStr($5));
...@@ -176,7 +176,7 @@ Boot_CreateStmt: ...@@ -176,7 +176,7 @@ Boot_CreateStmt:
{ {
if (boot_reldesc) if (boot_reldesc)
{ {
elog(DEBUG3, "create bootstrap: warning, open relation exists, closing first"); elog(DEBUG4, "create bootstrap: warning, open relation exists, closing first");
closerel(NULL); closerel(NULL);
} }
...@@ -186,7 +186,7 @@ Boot_CreateStmt: ...@@ -186,7 +186,7 @@ Boot_CreateStmt:
$3, $3,
true, true,
true); true);
elog(DEBUG3, "bootstrap relation created"); elog(DEBUG4, "bootstrap relation created");
} }
else else
{ {
...@@ -199,7 +199,7 @@ Boot_CreateStmt: ...@@ -199,7 +199,7 @@ Boot_CreateStmt:
$3, $3,
ONCOMMIT_NOOP, ONCOMMIT_NOOP,
true); true);
elog(DEBUG3, "relation created with oid %u", id); elog(DEBUG4, "relation created with oid %u", id);
} }
do_end(); do_end();
} }
...@@ -210,9 +210,9 @@ Boot_InsertStmt: ...@@ -210,9 +210,9 @@ Boot_InsertStmt:
{ {
do_start(); do_start();
if ($2) if ($2)
elog(DEBUG3, "inserting row with oid %u...", $2); elog(DEBUG4, "inserting row with oid %u...", $2);
else else
elog(DEBUG3, "inserting row..."); elog(DEBUG4, "inserting row...");
num_columns_read = 0; num_columns_read = 0;
} }
LPAREN boot_tuplelist RPAREN LPAREN boot_tuplelist RPAREN
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.157 2003/05/14 03:26:00 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.158 2003/05/27 17:49:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -537,7 +537,7 @@ boot_openrel(char *relname) ...@@ -537,7 +537,7 @@ boot_openrel(char *relname)
if (boot_reldesc != NULL) if (boot_reldesc != NULL)
closerel(NULL); closerel(NULL);
elog(DEBUG3, "open relation %s, attrsize %d", relname ? relname : "(null)", elog(DEBUG4, "open relation %s, attrsize %d", relname ? relname : "(null)",
(int) ATTRIBUTE_TUPLE_SIZE); (int) ATTRIBUTE_TUPLE_SIZE);
boot_reldesc = heap_openr(relname, NoLock); boot_reldesc = heap_openr(relname, NoLock);
...@@ -553,7 +553,7 @@ boot_openrel(char *relname) ...@@ -553,7 +553,7 @@ boot_openrel(char *relname)
{ {
Form_pg_attribute at = attrtypes[i]; Form_pg_attribute at = attrtypes[i];
elog(DEBUG3, "create attribute %d name %s len %d num %d type %u", elog(DEBUG4, "create attribute %d name %s len %d num %d type %u",
i, NameStr(at->attname), at->attlen, at->attnum, i, NameStr(at->attname), at->attlen, at->attnum,
at->atttypid); at->atttypid);
} }
...@@ -584,7 +584,7 @@ closerel(char *name) ...@@ -584,7 +584,7 @@ closerel(char *name)
elog(ERROR, "no open relation to close"); elog(ERROR, "no open relation to close");
else else
{ {
elog(DEBUG3, "close relation %s", relname ? relname : "(null)"); elog(DEBUG4, "close relation %s", relname ? relname : "(null)");
heap_close(boot_reldesc, NoLock); heap_close(boot_reldesc, NoLock);
boot_reldesc = (Relation) NULL; boot_reldesc = (Relation) NULL;
} }
...@@ -617,7 +617,7 @@ DefineAttr(char *name, char *type, int attnum) ...@@ -617,7 +617,7 @@ DefineAttr(char *name, char *type, int attnum)
MemSet(attrtypes[attnum], 0, ATTRIBUTE_TUPLE_SIZE); MemSet(attrtypes[attnum], 0, ATTRIBUTE_TUPLE_SIZE);
namestrcpy(&attrtypes[attnum]->attname, name); namestrcpy(&attrtypes[attnum]->attname, name);
elog(DEBUG3, "column %s %s", NameStr(attrtypes[attnum]->attname), type); elog(DEBUG4, "column %s %s", NameStr(attrtypes[attnum]->attname), type);
attrtypes[attnum]->attnum = attnum + 1; /* fillatt */ attrtypes[attnum]->attnum = attnum + 1; /* fillatt */
typeoid = gettype(type); typeoid = gettype(type);
...@@ -707,7 +707,7 @@ InsertOneTuple(Oid objectid) ...@@ -707,7 +707,7 @@ InsertOneTuple(Oid objectid)
TupleDesc tupDesc; TupleDesc tupDesc;
int i; int i;
elog(DEBUG3, "inserting row oid %u, %d columns", objectid, numattr); elog(DEBUG4, "inserting row oid %u, %d columns", objectid, numattr);
tupDesc = CreateTupleDesc(numattr, tupDesc = CreateTupleDesc(numattr,
RelationGetForm(boot_reldesc)->relhasoids, RelationGetForm(boot_reldesc)->relhasoids,
...@@ -719,7 +719,7 @@ InsertOneTuple(Oid objectid) ...@@ -719,7 +719,7 @@ InsertOneTuple(Oid objectid)
simple_heap_insert(boot_reldesc, tuple); simple_heap_insert(boot_reldesc, tuple);
heap_freetuple(tuple); heap_freetuple(tuple);
elog(DEBUG3, "row inserted"); elog(DEBUG4, "row inserted");
/* /*
* Reset blanks for next tuple * Reset blanks for next tuple
...@@ -741,13 +741,13 @@ InsertOneValue(char *value, int i) ...@@ -741,13 +741,13 @@ InsertOneValue(char *value, int i)
AssertArg(i >= 0 || i < MAXATTR); AssertArg(i >= 0 || i < MAXATTR);
elog(DEBUG3, "inserting column %d value '%s'", i, value); elog(DEBUG4, "inserting column %d value '%s'", i, value);
if (Typ != (struct typmap **) NULL) if (Typ != (struct typmap **) NULL)
{ {
struct typmap *ap; struct typmap *ap;
elog(DEBUG3, "Typ != NULL"); elog(DEBUG4, "Typ != NULL");
app = Typ; app = Typ;
while (*app && (*app)->am_oid != boot_reldesc->rd_att->attrs[i]->atttypid) while (*app && (*app)->am_oid != boot_reldesc->rd_att->attrs[i]->atttypid)
++app; ++app;
...@@ -765,7 +765,7 @@ InsertOneValue(char *value, int i) ...@@ -765,7 +765,7 @@ InsertOneValue(char *value, int i)
values[i], values[i],
ObjectIdGetDatum(ap->am_typ.typelem), ObjectIdGetDatum(ap->am_typ.typelem),
Int32GetDatum(-1))); Int32GetDatum(-1)));
elog(DEBUG3, " -> %s", prt); elog(DEBUG4, " -> %s", prt);
pfree(prt); pfree(prt);
} }
else else
...@@ -777,7 +777,7 @@ InsertOneValue(char *value, int i) ...@@ -777,7 +777,7 @@ InsertOneValue(char *value, int i)
} }
if (typeindex >= n_types) if (typeindex >= n_types)
elog(ERROR, "type oid %u not found", attrtypes[i]->atttypid); elog(ERROR, "type oid %u not found", attrtypes[i]->atttypid);
elog(DEBUG3, "Typ == NULL, typeindex = %u", typeindex); elog(DEBUG4, "Typ == NULL, typeindex = %u", typeindex);
values[i] = OidFunctionCall3(Procid[typeindex].inproc, values[i] = OidFunctionCall3(Procid[typeindex].inproc,
CStringGetDatum(value), CStringGetDatum(value),
ObjectIdGetDatum(Procid[typeindex].elem), ObjectIdGetDatum(Procid[typeindex].elem),
...@@ -786,10 +786,10 @@ InsertOneValue(char *value, int i) ...@@ -786,10 +786,10 @@ InsertOneValue(char *value, int i)
values[i], values[i],
ObjectIdGetDatum(Procid[typeindex].elem), ObjectIdGetDatum(Procid[typeindex].elem),
Int32GetDatum(-1))); Int32GetDatum(-1)));
elog(DEBUG3, " -> %s", prt); elog(DEBUG4, " -> %s", prt);
pfree(prt); pfree(prt);
} }
elog(DEBUG3, "inserted"); elog(DEBUG4, "inserted");
} }
/* ---------------- /* ----------------
...@@ -799,7 +799,7 @@ InsertOneValue(char *value, int i) ...@@ -799,7 +799,7 @@ InsertOneValue(char *value, int i)
void void
InsertOneNull(int i) InsertOneNull(int i)
{ {
elog(DEBUG3, "inserting column %d NULL", i); elog(DEBUG4, "inserting column %d NULL", i);
Assert(i >= 0 || i < MAXATTR); Assert(i >= 0 || i < MAXATTR);
values[i] = PointerGetDatum(NULL); values[i] = PointerGetDatum(NULL);
Blanks[i] = 'n'; Blanks[i] = 'n';
...@@ -893,7 +893,7 @@ gettype(char *type) ...@@ -893,7 +893,7 @@ gettype(char *type)
if (strncmp(type, Procid[i].name, NAMEDATALEN) == 0) if (strncmp(type, Procid[i].name, NAMEDATALEN) == 0)
return i; return i;
} }
elog(DEBUG3, "external type: %s", type); elog(DEBUG4, "external type: %s", type);
rel = heap_openr(TypeRelationName, NoLock); rel = heap_openr(TypeRelationName, NoLock);
scan = heap_beginscan(rel, SnapshotNow, 0, (ScanKey) NULL); scan = heap_beginscan(rel, SnapshotNow, 0, (ScanKey) NULL);
i = 0; i = 0;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.80 2003/01/23 23:38:55 petere Exp $ * $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.81 2003/05/27 17:49:45 momjian Exp $
* *
* NOTES * NOTES
* See acl.h. * See acl.h.
...@@ -57,11 +57,11 @@ dumpacl(Acl *acl) ...@@ -57,11 +57,11 @@ dumpacl(Acl *acl)
int i; int i;
AclItem *aip; AclItem *aip;
elog(DEBUG1, "acl size = %d, # acls = %d", elog(DEBUG2, "acl size = %d, # acls = %d",
ACL_SIZE(acl), ACL_NUM(acl)); ACL_SIZE(acl), ACL_NUM(acl));
aip = ACL_DAT(acl); aip = ACL_DAT(acl);
for (i = 0; i < ACL_NUM(acl); ++i) for (i = 0; i < ACL_NUM(acl); ++i)
elog(DEBUG1, " acl[%d]: %s", i, elog(DEBUG2, " acl[%d]: %s", i,
DatumGetCString(DirectFunctionCall1(aclitemout, DatumGetCString(DirectFunctionCall1(aclitemout,
PointerGetDatum(aip + i)))); PointerGetDatum(aip + i))));
} }
...@@ -894,7 +894,7 @@ pg_class_aclcheck(Oid table_oid, AclId userid, AclMode mode) ...@@ -894,7 +894,7 @@ pg_class_aclcheck(Oid table_oid, AclId userid, AclMode mode)
!usecatupd) !usecatupd)
{ {
#ifdef ACLDEBUG #ifdef ACLDEBUG
elog(DEBUG1, "pg_class_aclcheck: catalog update: permission denied"); elog(DEBUG2, "pg_class_aclcheck: catalog update: permission denied");
#endif #endif
ReleaseSysCache(tuple); ReleaseSysCache(tuple);
return ACLCHECK_NO_PRIV; return ACLCHECK_NO_PRIV;
...@@ -906,7 +906,7 @@ pg_class_aclcheck(Oid table_oid, AclId userid, AclMode mode) ...@@ -906,7 +906,7 @@ pg_class_aclcheck(Oid table_oid, AclId userid, AclMode mode)
if (usesuper) if (usesuper)
{ {
#ifdef ACLDEBUG #ifdef ACLDEBUG
elog(DEBUG1, "pg_class_aclcheck: %u is superuser", userid); elog(DEBUG2, "pg_class_aclcheck: %u is superuser", userid);
#endif #endif
ReleaseSysCache(tuple); ReleaseSysCache(tuple);
return ACLCHECK_OK; return ACLCHECK_OK;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/dependency.c,v 1.23 2003/03/06 22:54:49 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/catalog/dependency.c,v 1.24 2003/05/27 17:49:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -224,7 +224,7 @@ deleteWhatDependsOn(const ObjectAddress *object, ...@@ -224,7 +224,7 @@ deleteWhatDependsOn(const ObjectAddress *object,
*/ */
if (!deleteDependentObjects(object, objDescription, if (!deleteDependentObjects(object, objDescription,
DROP_CASCADE, DROP_CASCADE,
showNotices ? NOTICE : DEBUG1, showNotices ? NOTICE : DEBUG2,
&oktodelete, depRel)) &oktodelete, depRel))
elog(ERROR, "Failed to drop all objects depending on %s", elog(ERROR, "Failed to drop all objects depending on %s",
objDescription); objDescription);
...@@ -522,7 +522,7 @@ recursiveDeletion(const ObjectAddress *object, ...@@ -522,7 +522,7 @@ recursiveDeletion(const ObjectAddress *object,
if (amOwned) if (amOwned)
{ {
if (object_address_present(&owningObject, oktodelete)) if (object_address_present(&owningObject, oktodelete))
elog(DEBUG1, "Drop auto-cascades to %s", elog(DEBUG2, "Drop auto-cascades to %s",
getObjectDescription(&owningObject)); getObjectDescription(&owningObject));
else if (behavior == DROP_RESTRICT) else if (behavior == DROP_RESTRICT)
{ {
...@@ -669,7 +669,7 @@ deleteDependentObjects(const ObjectAddress *object, ...@@ -669,7 +669,7 @@ deleteDependentObjects(const ObjectAddress *object,
* In that case, act like this link is AUTO, too. * In that case, act like this link is AUTO, too.
*/ */
if (object_address_present(&otherObject, oktodelete)) if (object_address_present(&otherObject, oktodelete))
elog(DEBUG1, "Drop auto-cascades to %s", elog(DEBUG2, "Drop auto-cascades to %s",
getObjectDescription(&otherObject)); getObjectDescription(&otherObject));
else if (behavior == DROP_RESTRICT) else if (behavior == DROP_RESTRICT)
{ {
...@@ -694,7 +694,7 @@ deleteDependentObjects(const ObjectAddress *object, ...@@ -694,7 +694,7 @@ deleteDependentObjects(const ObjectAddress *object,
* RESTRICT case. (However, normal dependencies on the * RESTRICT case. (However, normal dependencies on the
* component object could still cause failure.) * component object could still cause failure.)
*/ */
elog(DEBUG1, "Drop auto-cascades to %s", elog(DEBUG2, "Drop auto-cascades to %s",
getObjectDescription(&otherObject)); getObjectDescription(&otherObject));
if (!recursiveDeletion(&otherObject, behavior, msglevel, if (!recursiveDeletion(&otherObject, behavior, msglevel,
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.53 2003/04/25 21:29:18 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.54 2003/05/27 17:49:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -161,7 +161,7 @@ analyze_rel(Oid relid, VacuumStmt *vacstmt) ...@@ -161,7 +161,7 @@ analyze_rel(Oid relid, VacuumStmt *vacstmt)
if (vacstmt->verbose) if (vacstmt->verbose)
elevel = INFO; elevel = INFO;
else else
elevel = DEBUG1; elevel = DEBUG2;
/* /*
* Use the current context for storing analysis info. vacuum.c * Use the current context for storing analysis info. vacuum.c
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.94 2003/05/14 03:26:01 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.95 2003/05/27 17:49:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -150,7 +150,7 @@ void ...@@ -150,7 +150,7 @@ void
Async_Notify(char *relname) Async_Notify(char *relname)
{ {
if (Trace_notify) if (Trace_notify)
elog(LOG, "Async_Notify: %s", relname); elog(DEBUG1, "Async_Notify: %s", relname);
/* no point in making duplicate entries in the list ... */ /* no point in making duplicate entries in the list ... */
if (!AsyncExistsPendingNotify(relname)) if (!AsyncExistsPendingNotify(relname))
...@@ -198,7 +198,7 @@ Async_Listen(char *relname, int pid) ...@@ -198,7 +198,7 @@ Async_Listen(char *relname, int pid)
bool alreadyListener = false; bool alreadyListener = false;
if (Trace_notify) if (Trace_notify)
elog(LOG, "Async_Listen: %s", relname); elog(DEBUG1, "Async_Listen: %s", relname);
lRel = heap_openr(ListenerRelationName, AccessExclusiveLock); lRel = heap_openr(ListenerRelationName, AccessExclusiveLock);
...@@ -293,7 +293,7 @@ Async_Unlisten(char *relname, int pid) ...@@ -293,7 +293,7 @@ Async_Unlisten(char *relname, int pid)
} }
if (Trace_notify) if (Trace_notify)
elog(LOG, "Async_Unlisten %s", relname); elog(DEBUG1, "Async_Unlisten %s", relname);
lRel = heap_openr(ListenerRelationName, AccessExclusiveLock); lRel = heap_openr(ListenerRelationName, AccessExclusiveLock);
...@@ -351,7 +351,7 @@ Async_UnlistenAll(void) ...@@ -351,7 +351,7 @@ Async_UnlistenAll(void)
ScanKeyData key[1]; ScanKeyData key[1];
if (Trace_notify) if (Trace_notify)
elog(LOG, "Async_UnlistenAll"); elog(DEBUG1, "Async_UnlistenAll");
lRel = heap_openr(ListenerRelationName, AccessExclusiveLock); lRel = heap_openr(ListenerRelationName, AccessExclusiveLock);
tdesc = RelationGetDescr(lRel); tdesc = RelationGetDescr(lRel);
...@@ -453,7 +453,7 @@ AtCommit_Notify(void) ...@@ -453,7 +453,7 @@ AtCommit_Notify(void)
} }
if (Trace_notify) if (Trace_notify)
elog(LOG, "AtCommit_Notify"); elog(DEBUG1, "AtCommit_Notify");
/* preset data to update notify column to MyProcPid */ /* preset data to update notify column to MyProcPid */
nulls[0] = nulls[1] = nulls[2] = ' '; nulls[0] = nulls[1] = nulls[2] = ' ';
...@@ -485,14 +485,14 @@ AtCommit_Notify(void) ...@@ -485,14 +485,14 @@ AtCommit_Notify(void)
*/ */
if (Trace_notify) if (Trace_notify)
elog(LOG, "AtCommit_Notify: notifying self"); elog(DEBUG1, "AtCommit_Notify: notifying self");
NotifyMyFrontEnd(relname, listenerPID); NotifyMyFrontEnd(relname, listenerPID);
} }
else else
{ {
if (Trace_notify) if (Trace_notify)
elog(LOG, "AtCommit_Notify: notifying pid %d", elog(DEBUG1, "AtCommit_Notify: notifying pid %d",
listenerPID); listenerPID);
/* /*
...@@ -541,7 +541,7 @@ AtCommit_Notify(void) ...@@ -541,7 +541,7 @@ AtCommit_Notify(void)
ClearPendingNotifies(); ClearPendingNotifies();
if (Trace_notify) if (Trace_notify)
elog(LOG, "AtCommit_Notify: done"); elog(DEBUG1, "AtCommit_Notify: done");
} }
/* /*
...@@ -628,12 +628,12 @@ Async_NotifyHandler(SIGNAL_ARGS) ...@@ -628,12 +628,12 @@ Async_NotifyHandler(SIGNAL_ARGS)
{ {
/* Here, it is finally safe to do stuff. */ /* Here, it is finally safe to do stuff. */
if (Trace_notify) if (Trace_notify)
elog(LOG, "Async_NotifyHandler: perform async notify"); elog(DEBUG1, "Async_NotifyHandler: perform async notify");
ProcessIncomingNotify(); ProcessIncomingNotify();
if (Trace_notify) if (Trace_notify)
elog(LOG, "Async_NotifyHandler: done"); elog(DEBUG1, "Async_NotifyHandler: done");
} }
} }
...@@ -707,12 +707,12 @@ EnableNotifyInterrupt(void) ...@@ -707,12 +707,12 @@ EnableNotifyInterrupt(void)
if (notifyInterruptOccurred) if (notifyInterruptOccurred)
{ {
if (Trace_notify) if (Trace_notify)
elog(LOG, "EnableNotifyInterrupt: perform async notify"); elog(DEBUG1, "EnableNotifyInterrupt: perform async notify");
ProcessIncomingNotify(); ProcessIncomingNotify();
if (Trace_notify) if (Trace_notify)
elog(LOG, "EnableNotifyInterrupt: done"); elog(DEBUG1, "EnableNotifyInterrupt: done");
} }
} }
} }
...@@ -763,7 +763,7 @@ ProcessIncomingNotify(void) ...@@ -763,7 +763,7 @@ ProcessIncomingNotify(void)
nulls[Natts_pg_listener]; nulls[Natts_pg_listener];
if (Trace_notify) if (Trace_notify)
elog(LOG, "ProcessIncomingNotify"); elog(DEBUG1, "ProcessIncomingNotify");
set_ps_display("async_notify"); set_ps_display("async_notify");
...@@ -799,7 +799,7 @@ ProcessIncomingNotify(void) ...@@ -799,7 +799,7 @@ ProcessIncomingNotify(void)
/* Notify the frontend */ /* Notify the frontend */
if (Trace_notify) if (Trace_notify)
elog(LOG, "ProcessIncomingNotify: received %s from %d", elog(DEBUG1, "ProcessIncomingNotify: received %s from %d",
relname, (int) sourcePID); relname, (int) sourcePID);
NotifyMyFrontEnd(relname, sourcePID); NotifyMyFrontEnd(relname, sourcePID);
...@@ -834,7 +834,7 @@ ProcessIncomingNotify(void) ...@@ -834,7 +834,7 @@ ProcessIncomingNotify(void)
set_ps_display("idle"); set_ps_display("idle");
if (Trace_notify) if (Trace_notify)
elog(LOG, "ProcessIncomingNotify: done"); elog(DEBUG1, "ProcessIncomingNotify: done");
} }
/* /*
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.253 2003/05/14 03:26:01 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.254 2003/05/27 17:49:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -166,7 +166,7 @@ vacuum(VacuumStmt *vacstmt) ...@@ -166,7 +166,7 @@ vacuum(VacuumStmt *vacstmt)
if (vacstmt->verbose) if (vacstmt->verbose)
elevel = INFO; elevel = INFO;
else else
elevel = DEBUG1; elevel = DEBUG2;
/* /*
* We cannot run VACUUM inside a user transaction block; if we were * We cannot run VACUUM inside a user transaction block; if we were
...@@ -1673,7 +1673,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel, ...@@ -1673,7 +1673,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel,
/* Quick exit if we have no vtlinks to search in */ /* Quick exit if we have no vtlinks to search in */
if (vacrelstats->vtlinks == NULL) if (vacrelstats->vtlinks == NULL)
{ {
elog(DEBUG1, "Parent item in update-chain not found - can't continue repair_frag"); elog(DEBUG2, "Parent item in update-chain not found - can't continue repair_frag");
break; /* out of walk-along-page loop */ break; /* out of walk-along-page loop */
} }
...@@ -1710,7 +1710,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel, ...@@ -1710,7 +1710,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel,
* in scan_heap(), but it's not implemented at the * in scan_heap(), but it's not implemented at the
* moment and so we just stop shrinking here. * moment and so we just stop shrinking here.
*/ */
elog(DEBUG1, "Child itemid in update-chain marked as unused - can't continue repair_frag"); elog(DEBUG2, "Child itemid in update-chain marked as unused - can't continue repair_frag");
chain_move_failed = true; chain_move_failed = true;
break; /* out of loop to move to chain end */ break; /* out of loop to move to chain end */
} }
...@@ -1795,7 +1795,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel, ...@@ -1795,7 +1795,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel,
if (vtlp == NULL) if (vtlp == NULL)
{ {
/* see discussion above */ /* see discussion above */
elog(DEBUG1, "Parent item in update-chain not found - can't continue repair_frag"); elog(DEBUG2, "Parent item in update-chain not found - can't continue repair_frag");
chain_move_failed = true; chain_move_failed = true;
break; /* out of check-all-items loop */ break; /* out of check-all-items loop */
} }
...@@ -1831,7 +1831,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel, ...@@ -1831,7 +1831,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel,
HeapTupleHeaderGetXmin(tp.t_data)))) HeapTupleHeaderGetXmin(tp.t_data))))
{ {
ReleaseBuffer(Pbuf); ReleaseBuffer(Pbuf);
elog(DEBUG1, "Too old parent tuple found - can't continue repair_frag"); elog(DEBUG2, "Too old parent tuple found - can't continue repair_frag");
chain_move_failed = true; chain_move_failed = true;
break; /* out of check-all-items loop */ break; /* out of check-all-items loop */
} }
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuumlazy.c,v 1.27 2003/03/04 21:51:21 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/vacuumlazy.c,v 1.28 2003/05/27 17:49:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -133,7 +133,7 @@ lazy_vacuum_rel(Relation onerel, VacuumStmt *vacstmt) ...@@ -133,7 +133,7 @@ lazy_vacuum_rel(Relation onerel, VacuumStmt *vacstmt)
if (vacstmt->verbose) if (vacstmt->verbose)
elevel = INFO; elevel = INFO;
else else
elevel = DEBUG1; elevel = DEBUG2;
vacuum_set_xid_limits(vacstmt, onerel->rd_rel->relisshared, vacuum_set_xid_limits(vacstmt, onerel->rd_rel->relisshared,
&OldestXmin, &FreezeLimit); &OldestXmin, &FreezeLimit);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Header: /cvsroot/pgsql/src/backend/executor/execAmi.c,v 1.70 2003/03/10 03:53:49 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/executor/execAmi.c,v 1.71 2003/05/27 17:49:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -208,7 +208,7 @@ ExecMarkPos(PlanState *node) ...@@ -208,7 +208,7 @@ ExecMarkPos(PlanState *node)
default: default:
/* don't make hard error unless caller asks to restore... */ /* don't make hard error unless caller asks to restore... */
elog(DEBUG1, "ExecMarkPos: node type %d not supported", elog(DEBUG2, "ExecMarkPos: node type %d not supported",
nodeTag(node)); nodeTag(node));
break; break;
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.63 2002/09/02 02:47:02 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.64 2003/05/27 17:49:46 momjian Exp $
* *
* NOTES * NOTES
* This should be moved to a more appropriate place. It is here * This should be moved to a more appropriate place. It is here
...@@ -81,7 +81,7 @@ lo_open(PG_FUNCTION_ARGS) ...@@ -81,7 +81,7 @@ lo_open(PG_FUNCTION_ARGS)
MemoryContext currentContext; MemoryContext currentContext;
#if FSDB #if FSDB
elog(DEBUG3, "lo_open(%u,%d)", lobjId, mode); elog(DEBUG4, "lo_open(%u,%d)", lobjId, mode);
#endif #endif
if (fscxt == NULL) if (fscxt == NULL)
...@@ -99,7 +99,7 @@ lo_open(PG_FUNCTION_ARGS) ...@@ -99,7 +99,7 @@ lo_open(PG_FUNCTION_ARGS)
{ /* lookup failed */ { /* lookup failed */
MemoryContextSwitchTo(currentContext); MemoryContextSwitchTo(currentContext);
#if FSDB #if FSDB
elog(DEBUG3, "cannot open large object %u", lobjId); elog(DEBUG4, "cannot open large object %u", lobjId);
#endif #endif
PG_RETURN_INT32(-1); PG_RETURN_INT32(-1);
} }
...@@ -123,7 +123,7 @@ lo_close(PG_FUNCTION_ARGS) ...@@ -123,7 +123,7 @@ lo_close(PG_FUNCTION_ARGS)
PG_RETURN_INT32(-1); PG_RETURN_INT32(-1);
} }
#if FSDB #if FSDB
elog(DEBUG3, "lo_close(%d)", fd); elog(DEBUG4, "lo_close(%d)", fd);
#endif #endif
Assert(fscxt != NULL); Assert(fscxt != NULL);
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.32 2003/05/15 16:35:28 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.33 2003/05/27 17:49:46 momjian Exp $
* *
* Since the server static private key ($DataDir/server.key) * Since the server static private key ($DataDir/server.key)
* will normally be stored unencrypted so that the database * will normally be stored unencrypted so that the database
...@@ -442,7 +442,7 @@ load_dh_buffer(const char *buffer, size_t len) ...@@ -442,7 +442,7 @@ load_dh_buffer(const char *buffer, size_t len)
return NULL; return NULL;
dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL); dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL);
if (dh == NULL) if (dh == NULL)
elog(DEBUG1, "DH load buffer: %s", SSLerrmessage()); elog(DEBUG2, "DH load buffer: %s", SSLerrmessage());
BIO_free(bio); BIO_free(bio);
return dh; return dh;
...@@ -514,7 +514,7 @@ tmp_dh_cb(SSL *s, int is_export, int keylength) ...@@ -514,7 +514,7 @@ tmp_dh_cb(SSL *s, int is_export, int keylength)
/* this may take a long time, but it may be necessary... */ /* this may take a long time, but it may be necessary... */
if (r == NULL || 8 * DH_size(r) < keylength) if (r == NULL || 8 * DH_size(r) < keylength)
{ {
elog(DEBUG1, "DH: generating parameters (%d bits)....", keylength); elog(DEBUG2, "DH: generating parameters (%d bits)....", keylength);
r = DH_generate_parameters(keylength, DH_GENERATOR_2, NULL, NULL); r = DH_generate_parameters(keylength, DH_GENERATOR_2, NULL, NULL);
} }
...@@ -548,28 +548,28 @@ info_cb(const SSL *ssl, int type, int args) ...@@ -548,28 +548,28 @@ info_cb(const SSL *ssl, int type, int args)
switch (type) switch (type)
{ {
case SSL_CB_HANDSHAKE_START: case SSL_CB_HANDSHAKE_START:
elog(DEBUG3, "SSL: handshake start"); elog(DEBUG4, "SSL: handshake start");
break; break;
case SSL_CB_HANDSHAKE_DONE: case SSL_CB_HANDSHAKE_DONE:
elog(DEBUG3, "SSL: handshake done"); elog(DEBUG4, "SSL: handshake done");
break; break;
case SSL_CB_ACCEPT_LOOP: case SSL_CB_ACCEPT_LOOP:
elog(DEBUG3, "SSL: accept loop"); elog(DEBUG4, "SSL: accept loop");
break; break;
case SSL_CB_ACCEPT_EXIT: case SSL_CB_ACCEPT_EXIT:
elog(DEBUG3, "SSL: accept exit (%d)", args); elog(DEBUG4, "SSL: accept exit (%d)", args);
break; break;
case SSL_CB_CONNECT_LOOP: case SSL_CB_CONNECT_LOOP:
elog(DEBUG3, "SSL: connect loop"); elog(DEBUG4, "SSL: connect loop");
break; break;
case SSL_CB_CONNECT_EXIT: case SSL_CB_CONNECT_EXIT:
elog(DEBUG3, "SSL: connect exit (%d)", args); elog(DEBUG4, "SSL: connect exit (%d)", args);
break; break;
case SSL_CB_READ_ALERT: case SSL_CB_READ_ALERT:
elog(DEBUG3, "SSL: read alert (0x%04x)", args); elog(DEBUG4, "SSL: read alert (0x%04x)", args);
break; break;
case SSL_CB_WRITE_ALERT: case SSL_CB_WRITE_ALERT:
elog(DEBUG3, "SSL: write alert (0x%04x)", args); elog(DEBUG4, "SSL: write alert (0x%04x)", args);
break; break;
} }
} }
...@@ -702,7 +702,7 @@ open_server_SSL(Port *port) ...@@ -702,7 +702,7 @@ open_server_SSL(Port *port)
NID_commonName, port->peer_cn, sizeof(port->peer_cn)); NID_commonName, port->peer_cn, sizeof(port->peer_cn));
port->peer_cn[sizeof(port->peer_cn) - 1] = '\0'; port->peer_cn[sizeof(port->peer_cn) - 1] = '\0';
} }
elog(DEBUG1, "secure connection from '%s'", port->peer_cn); elog(DEBUG2, "secure connection from '%s'", port->peer_cn);
/* set up debugging/info callback */ /* set up debugging/info callback */
SSL_CTX_set_info_callback(SSL_context, info_cb); SSL_CTX_set_info_callback(SSL_context, info_cb);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Header: /cvsroot/pgsql/src/backend/optimizer/geqo/geqo_main.c,v 1.34 2003/01/20 18:54:49 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/optimizer/geqo/geqo_main.c,v 1.35 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -120,30 +120,30 @@ geqo(Query *root, int number_of_rels, List *initial_rels) ...@@ -120,30 +120,30 @@ geqo(Query *root, int number_of_rels, List *initial_rels)
daddy = alloc_chromo(pool->string_length); daddy = alloc_chromo(pool->string_length);
#if defined (ERX) #if defined (ERX)
elog(DEBUG1, "geqo_main: using edge recombination crossover [ERX]"); elog(DEBUG2, "geqo_main: using edge recombination crossover [ERX]");
/* allocate edge table memory */ /* allocate edge table memory */
edge_table = alloc_edge_table(pool->string_length); edge_table = alloc_edge_table(pool->string_length);
#elif defined(PMX) #elif defined(PMX)
elog(DEBUG1, "geqo_main: using partially matched crossover [PMX]"); elog(DEBUG2, "geqo_main: using partially matched crossover [PMX]");
/* allocate chromosome kid memory */ /* allocate chromosome kid memory */
kid = alloc_chromo(pool->string_length); kid = alloc_chromo(pool->string_length);
#elif defined(CX) #elif defined(CX)
elog(DEBUG1, "geqo_main: using cycle crossover [CX]"); elog(DEBUG2, "geqo_main: using cycle crossover [CX]");
/* allocate city table memory */ /* allocate city table memory */
kid = alloc_chromo(pool->string_length); kid = alloc_chromo(pool->string_length);
city_table = alloc_city_table(pool->string_length); city_table = alloc_city_table(pool->string_length);
#elif defined(PX) #elif defined(PX)
elog(DEBUG1, "geqo_main: using position crossover [PX]"); elog(DEBUG2, "geqo_main: using position crossover [PX]");
/* allocate city table memory */ /* allocate city table memory */
kid = alloc_chromo(pool->string_length); kid = alloc_chromo(pool->string_length);
city_table = alloc_city_table(pool->string_length); city_table = alloc_city_table(pool->string_length);
#elif defined(OX1) #elif defined(OX1)
elog(DEBUG1, "geqo_main: using order crossover [OX1]"); elog(DEBUG2, "geqo_main: using order crossover [OX1]");
/* allocate city table memory */ /* allocate city table memory */
kid = alloc_chromo(pool->string_length); kid = alloc_chromo(pool->string_length);
city_table = alloc_city_table(pool->string_length); city_table = alloc_city_table(pool->string_length);
#elif defined(OX2) #elif defined(OX2)
elog(DEBUG1, "geqo_main: using order crossover [OX2]"); elog(DEBUG2, "geqo_main: using order crossover [OX2]");
/* allocate city table memory */ /* allocate city table memory */
kid = alloc_chromo(pool->string_length); kid = alloc_chromo(pool->string_length);
city_table = alloc_city_table(pool->string_length); city_table = alloc_city_table(pool->string_length);
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.57 2003/02/03 21:15:44 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.58 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -550,7 +550,7 @@ clause_selectivity(Query *root, ...@@ -550,7 +550,7 @@ clause_selectivity(Query *root,
} }
#ifdef SELECTIVITY_DEBUG #ifdef SELECTIVITY_DEBUG
elog(DEBUG3, "clause_selectivity: s1 %f", s1); elog(DEBUG4, "clause_selectivity: s1 %f", s1);
#endif /* SELECTIVITY_DEBUG */ #endif /* SELECTIVITY_DEBUG */
return s1; return s1;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.140 2003/05/26 00:11:27 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.141 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1279,7 +1279,7 @@ pred_test_simple_clause(Expr *predicate, Node *clause) ...@@ -1279,7 +1279,7 @@ pred_test_simple_clause(Expr *predicate, Node *clause)
if (isNull) if (isNull)
{ {
/* Treat a null result as false ... but it's a tad fishy ... */ /* Treat a null result as false ... but it's a tad fishy ... */
elog(DEBUG1, "pred_test_simple_clause: null test result"); elog(DEBUG2, "pred_test_simple_clause: null test result");
return false; return false;
} }
return DatumGetBool(test_result); return DatumGetBool(test_result);
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.328 2003/05/15 16:35:29 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.329 2003/05/27 17:49:46 momjian Exp $
* *
* NOTES * NOTES
* *
...@@ -631,11 +631,11 @@ PostmasterMain(int argc, char *argv[]) ...@@ -631,11 +631,11 @@ PostmasterMain(int argc, char *argv[])
extern char **environ; extern char **environ;
char **p; char **p;
elog(DEBUG2, "%s: PostmasterMain: initial environ dump:", progname); elog(DEBUG3, "%s: PostmasterMain: initial environ dump:", progname);
elog(DEBUG2, "-----------------------------------------"); elog(DEBUG3, "-----------------------------------------");
for (p = environ; *p; ++p) for (p = environ; *p; ++p)
elog(DEBUG2, "\t%s", *p); elog(DEBUG3, "\t%s", *p);
elog(DEBUG2, "-----------------------------------------"); elog(DEBUG3, "-----------------------------------------");
} }
/* /*
...@@ -1407,7 +1407,7 @@ processCancelRequest(Port *port, void *pkt) ...@@ -1407,7 +1407,7 @@ processCancelRequest(Port *port, void *pkt)
if (backendPID == CheckPointPID) if (backendPID == CheckPointPID)
{ {
elog(DEBUG1, "processCancelRequest: CheckPointPID in cancel request for process %d", backendPID); elog(DEBUG2, "processCancelRequest: CheckPointPID in cancel request for process %d", backendPID);
return; return;
} }
else if (ExecBackend) else if (ExecBackend)
...@@ -1425,20 +1425,20 @@ processCancelRequest(Port *port, void *pkt) ...@@ -1425,20 +1425,20 @@ processCancelRequest(Port *port, void *pkt)
if (bp->cancel_key == cancelAuthCode) if (bp->cancel_key == cancelAuthCode)
{ {
/* Found a match; signal that backend to cancel current op */ /* Found a match; signal that backend to cancel current op */
elog(DEBUG1, "processing cancel request: sending SIGINT to process %d", elog(DEBUG2, "processing cancel request: sending SIGINT to process %d",
backendPID); backendPID);
kill(bp->pid, SIGINT); kill(bp->pid, SIGINT);
} }
else else
/* Right PID, wrong key: no way, Jose */ /* Right PID, wrong key: no way, Jose */
elog(DEBUG1, "bad key in cancel request for process %d", elog(DEBUG2, "bad key in cancel request for process %d",
backendPID); backendPID);
return; return;
} }
} }
/* No matching backend */ /* No matching backend */
elog(DEBUG1, "bad pid in cancel request for process %d", backendPID); elog(DEBUG2, "bad pid in cancel request for process %d", backendPID);
} }
/* /*
...@@ -1603,7 +1603,7 @@ pmdie(SIGNAL_ARGS) ...@@ -1603,7 +1603,7 @@ pmdie(SIGNAL_ARGS)
PG_SETMASK(&BlockSig); PG_SETMASK(&BlockSig);
elog(DEBUG1, "pmdie %d", postgres_signal_arg); elog(DEBUG2, "pmdie %d", postgres_signal_arg);
switch (postgres_signal_arg) switch (postgres_signal_arg)
{ {
...@@ -1727,7 +1727,7 @@ reaper(SIGNAL_ARGS) ...@@ -1727,7 +1727,7 @@ reaper(SIGNAL_ARGS)
PG_SETMASK(&BlockSig); PG_SETMASK(&BlockSig);
elog(DEBUG3, "reaping dead processes"); elog(DEBUG4, "reaping dead processes");
#ifdef HAVE_WAITPID #ifdef HAVE_WAITPID
while ((pid = waitpid(-1, &status, WNOHANG)) > 0) while ((pid = waitpid(-1, &status, WNOHANG)) > 0)
{ {
...@@ -1863,7 +1863,7 @@ CleanupProc(int pid, ...@@ -1863,7 +1863,7 @@ CleanupProc(int pid,
*next; *next;
Backend *bp; Backend *bp;
LogChildExit(DEBUG1, gettext("child process"), pid, exitstatus); LogChildExit(DEBUG2, gettext("child process"), pid, exitstatus);
/* /*
* If a backend dies in an ugly way (i.e. exit status not 0) then we * If a backend dies in an ugly way (i.e. exit status not 0) then we
...@@ -1933,7 +1933,7 @@ CleanupProc(int pid, ...@@ -1933,7 +1933,7 @@ CleanupProc(int pid,
*/ */
if (!FatalError) if (!FatalError)
{ {
elog(DEBUG1, "CleanupProc: sending %s to process %d", elog(DEBUG2, "CleanupProc: sending %s to process %d",
(SendStop ? "SIGSTOP" : "SIGQUIT"), (int) bp->pid); (SendStop ? "SIGSTOP" : "SIGQUIT"), (int) bp->pid);
kill(bp->pid, (SendStop ? SIGSTOP : SIGQUIT)); kill(bp->pid, (SendStop ? SIGSTOP : SIGQUIT));
} }
...@@ -2005,7 +2005,7 @@ SignalChildren(int signal) ...@@ -2005,7 +2005,7 @@ SignalChildren(int signal)
if (bp->pid != MyProcPid) if (bp->pid != MyProcPid)
{ {
elog(DEBUG1, "SignalChildren: sending signal %d to process %d", elog(DEBUG2, "SignalChildren: sending signal %d to process %d",
signal, (int) bp->pid); signal, (int) bp->pid);
kill(bp->pid, signal); kill(bp->pid, signal);
} }
...@@ -2097,7 +2097,7 @@ BackendStartup(Port *port) ...@@ -2097,7 +2097,7 @@ BackendStartup(Port *port)
} }
/* in parent, normal */ /* in parent, normal */
elog(DEBUG1, "BackendStartup: forked pid=%d socket=%d", (int) pid, elog(DEBUG2, "BackendStartup: forked pid=%d socket=%d", (int) pid,
port->sock); port->sock);
/* /*
...@@ -2469,10 +2469,10 @@ BackendFinalize(Port *port) ...@@ -2469,10 +2469,10 @@ BackendFinalize(Port *port)
/* /*
* Debug: print arguments being passed to backend * Debug: print arguments being passed to backend
*/ */
elog(DEBUG2, "%s child[%d]: starting with (", progname, MyProcPid); elog(DEBUG3, "%s child[%d]: starting with (", progname, MyProcPid);
for (i = 0; i < ac; ++i) for (i = 0; i < ac; ++i)
elog(DEBUG2, "\t%s", av[i]); elog(DEBUG3, "\t%s", av[i]);
elog(DEBUG2, ")"); elog(DEBUG3, ")");
ClientAuthInProgress = false; /* client_min_messages is active ClientAuthInProgress = false; /* client_min_messages is active
* now */ * now */
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.81 2002/09/04 20:31:25 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.82 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -92,7 +92,7 @@ proc_exit(int code) ...@@ -92,7 +92,7 @@ proc_exit(int code)
InterruptHoldoffCount = 1; InterruptHoldoffCount = 1;
CritSectionCount = 0; CritSectionCount = 0;
elog(DEBUG2, "proc_exit(%d)", code); elog(DEBUG3, "proc_exit(%d)", code);
/* do our shared memory exits first */ /* do our shared memory exits first */
shmem_exit(code); shmem_exit(code);
...@@ -110,7 +110,7 @@ proc_exit(int code) ...@@ -110,7 +110,7 @@ proc_exit(int code)
(*on_proc_exit_list[on_proc_exit_index].function) (code, (*on_proc_exit_list[on_proc_exit_index].function) (code,
on_proc_exit_list[on_proc_exit_index].arg); on_proc_exit_list[on_proc_exit_index].arg);
elog(DEBUG2, "exit(%d)", code); elog(DEBUG3, "exit(%d)", code);
exit(code); exit(code);
} }
...@@ -123,7 +123,7 @@ proc_exit(int code) ...@@ -123,7 +123,7 @@ proc_exit(int code)
void void
shmem_exit(int code) shmem_exit(int code)
{ {
elog(DEBUG2, "shmem_exit(%d)", code); elog(DEBUG3, "shmem_exit(%d)", code);
/* /*
* call all the registered callbacks. * call all the registered callbacks.
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.52 2003/05/03 03:52:07 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.53 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -70,7 +70,7 @@ CreateSharedMemoryAndSemaphores(bool makePrivate, ...@@ -70,7 +70,7 @@ CreateSharedMemoryAndSemaphores(bool makePrivate,
/* might as well round it off to a multiple of a typical page size */ /* might as well round it off to a multiple of a typical page size */
size += 8192 - (size % 8192); size += 8192 - (size % 8192);
elog(DEBUG2, "invoking IpcMemoryCreate(size=%d)", size); elog(DEBUG3, "invoking IpcMemoryCreate(size=%d)", size);
/* /*
* Create the shmem segment * Create the shmem segment
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmqueue.c,v 1.23 2003/01/07 22:23:17 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmqueue.c,v 1.24 2003/05/27 17:49:46 momjian Exp $
* *
* NOTES * NOTES
* *
...@@ -229,7 +229,7 @@ dumpQ(SHM_QUEUE *q, char *s) ...@@ -229,7 +229,7 @@ dumpQ(SHM_QUEUE *q, char *s)
} }
snprintf(elem, sizeof(elem), "--->%lx", MAKE_OFFSET(q)); snprintf(elem, sizeof(elem), "--->%lx", MAKE_OFFSET(q));
strcat(buf, elem); strcat(buf, elem);
elog(DEBUG1, "%s: %s", s, buf); elog(DEBUG2, "%s: %s", s, buf);
snprintf(buf, sizeof(buf), "q nexts: %lx", MAKE_OFFSET(q)); snprintf(buf, sizeof(buf), "q nexts: %lx", MAKE_OFFSET(q));
count = 0; count = 0;
...@@ -249,7 +249,7 @@ dumpQ(SHM_QUEUE *q, char *s) ...@@ -249,7 +249,7 @@ dumpQ(SHM_QUEUE *q, char *s)
} }
snprintf(elem, sizeof(elem), "--->%lx", MAKE_OFFSET(q)); snprintf(elem, sizeof(elem), "--->%lx", MAKE_OFFSET(q));
strcat(buf, elem); strcat(buf, elem);
elog(DEBUG1, "%s: %s", s, buf); elog(DEBUG2, "%s: %s", s, buf);
} }
#endif /* SHMQUEUE_DEBUG */ #endif /* SHMQUEUE_DEBUG */
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinval.c,v 1.54 2003/02/23 23:20:52 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinval.c,v 1.55 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -65,7 +65,7 @@ SendSharedInvalidMessage(SharedInvalidationMessage *msg) ...@@ -65,7 +65,7 @@ SendSharedInvalidMessage(SharedInvalidationMessage *msg)
insertOK = SIInsertDataEntry(shmInvalBuffer, msg); insertOK = SIInsertDataEntry(shmInvalBuffer, msg);
LWLockRelease(SInvalLock); LWLockRelease(SInvalLock);
if (!insertOK) if (!insertOK)
elog(DEBUG3, "SendSharedInvalidMessage: SI buffer overflow"); elog(DEBUG4, "SendSharedInvalidMessage: SI buffer overflow");
} }
/* /*
...@@ -108,7 +108,7 @@ ReceiveSharedInvalidMessages( ...@@ -108,7 +108,7 @@ ReceiveSharedInvalidMessages(
if (getResult < 0) if (getResult < 0)
{ {
/* got a reset message */ /* got a reset message */
elog(DEBUG3, "ReceiveSharedInvalidMessages: cache state reset"); elog(DEBUG4, "ReceiveSharedInvalidMessages: cache state reset");
resetFunction(); resetFunction();
} }
else else
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.49 2002/11/21 06:36:08 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.50 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -121,7 +121,7 @@ SIBackendInit(SISeg *segP) ...@@ -121,7 +121,7 @@ SIBackendInit(SISeg *segP)
MyBackendId = (stateP - &segP->procState[0]) + 1; MyBackendId = (stateP - &segP->procState[0]) + 1;
#ifdef INVALIDDEBUG #ifdef INVALIDDEBUG
elog(DEBUG1, "SIBackendInit: backend id %d", MyBackendId); elog(DEBUG2, "SIBackendInit: backend id %d", MyBackendId);
#endif /* INVALIDDEBUG */ #endif /* INVALIDDEBUG */
/* Reduce free slot count */ /* Reduce free slot count */
...@@ -226,7 +226,7 @@ SIInsertDataEntry(SISeg *segP, SharedInvalidationMessage *data) ...@@ -226,7 +226,7 @@ SIInsertDataEntry(SISeg *segP, SharedInvalidationMessage *data)
if (numMsgs == (MAXNUMMESSAGES * 70 / 100) && if (numMsgs == (MAXNUMMESSAGES * 70 / 100) &&
IsUnderPostmaster) IsUnderPostmaster)
{ {
elog(DEBUG3, "SIInsertDataEntry: table is 70%% full, signaling postmaster"); elog(DEBUG4, "SIInsertDataEntry: table is 70%% full, signaling postmaster");
SendPostmasterSignal(PMSIGNAL_WAKEN_CHILDREN); SendPostmasterSignal(PMSIGNAL_WAKEN_CHILDREN);
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.345 2003/05/14 18:40:37 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.346 2003/05/27 17:49:46 momjian Exp $
* *
* NOTES * NOTES
* this is the "main" module of the postgres backend and * this is the "main" module of the postgres backend and
...@@ -513,7 +513,7 @@ pg_rewrite_queries(List *querytree_list) ...@@ -513,7 +513,7 @@ pg_rewrite_queries(List *querytree_list)
Query *querytree = (Query *) lfirst(list_item); Query *querytree = (Query *) lfirst(list_item);
if (Debug_print_parse) if (Debug_print_parse)
elog_node_display(LOG, "parse tree", querytree, elog_node_display(DEBUG1, "parse tree", querytree,
Debug_pretty_print); Debug_pretty_print);
if (querytree->commandType == CMD_UTILITY) if (querytree->commandType == CMD_UTILITY)
...@@ -550,7 +550,7 @@ pg_rewrite_queries(List *querytree_list) ...@@ -550,7 +550,7 @@ pg_rewrite_queries(List *querytree_list)
#endif #endif
if (Debug_print_rewritten) if (Debug_print_rewritten)
elog_node_display(LOG, "rewritten parse tree", querytree_list, elog_node_display(DEBUG1, "rewritten parse tree", querytree_list,
Debug_pretty_print); Debug_pretty_print);
return querytree_list; return querytree_list;
...@@ -599,7 +599,7 @@ pg_plan_query(Query *querytree) ...@@ -599,7 +599,7 @@ pg_plan_query(Query *querytree)
* Print plan if debugging. * Print plan if debugging.
*/ */
if (Debug_print_plan) if (Debug_print_plan)
elog_node_display(LOG, "plan", plan, Debug_pretty_print); elog_node_display(DEBUG1, "plan", plan, Debug_pretty_print);
return plan; return plan;
} }
...@@ -1650,7 +1650,7 @@ start_xact_command(void) ...@@ -1650,7 +1650,7 @@ start_xact_command(void)
{ {
if (!xact_started) if (!xact_started)
{ {
elog(DEBUG2, "StartTransactionCommand"); elog(DEBUG3, "StartTransactionCommand");
StartTransactionCommand(); StartTransactionCommand();
/* Set statement timeout running, if any */ /* Set statement timeout running, if any */
...@@ -1673,7 +1673,7 @@ finish_xact_command(void) ...@@ -1673,7 +1673,7 @@ finish_xact_command(void)
disable_sig_alarm(true); disable_sig_alarm(true);
/* Now commit the command */ /* Now commit the command */
elog(DEBUG2, "CommitTransactionCommand"); elog(DEBUG3, "CommitTransactionCommand");
CommitTransactionCommand(); CommitTransactionCommand();
...@@ -2503,7 +2503,7 @@ PostgresMain(int argc, char *argv[], const char *username) ...@@ -2503,7 +2503,7 @@ PostgresMain(int argc, char *argv[], const char *username)
* putting it inside InitPostgres() instead. In particular, anything * putting it inside InitPostgres() instead. In particular, anything
* that involves database access should be there, not here. * that involves database access should be there, not here.
*/ */
elog(DEBUG2, "InitPostgres"); elog(DEBUG3, "InitPostgres");
InitPostgres(dbname, username); InitPostgres(dbname, username);
SetProcessingMode(NormalProcessing); SetProcessingMode(NormalProcessing);
...@@ -2526,7 +2526,7 @@ PostgresMain(int argc, char *argv[], const char *username) ...@@ -2526,7 +2526,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if (!IsUnderPostmaster) if (!IsUnderPostmaster)
{ {
puts("\nPOSTGRES backend interactive interface "); puts("\nPOSTGRES backend interactive interface ");
puts("$Revision: 1.345 $ $Date: 2003/05/14 18:40:37 $\n"); puts("$Revision: 1.346 $ $Date: 2003/05/27 17:49:46 $\n");
} }
/* /*
...@@ -2585,7 +2585,7 @@ PostgresMain(int argc, char *argv[], const char *username) ...@@ -2585,7 +2585,7 @@ PostgresMain(int argc, char *argv[], const char *username)
MemoryContextSwitchTo(ErrorContext); MemoryContextSwitchTo(ErrorContext);
/* Do the recovery */ /* Do the recovery */
elog(DEBUG1, "AbortCurrentTransaction"); elog(DEBUG2, "AbortCurrentTransaction");
AbortCurrentTransaction(); AbortCurrentTransaction();
/* /*
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.64 2003/05/08 18:16:36 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.65 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -702,7 +702,7 @@ PortalRunUtility(Portal portal, Query *query, ...@@ -702,7 +702,7 @@ PortalRunUtility(Portal portal, Query *query,
{ {
Node *utilityStmt = query->utilityStmt; Node *utilityStmt = query->utilityStmt;
elog(DEBUG2, "ProcessUtility"); elog(DEBUG3, "ProcessUtility");
/* /*
* Set snapshot if utility stmt needs one. Most reliable * Set snapshot if utility stmt needs one. Most reliable
...@@ -806,7 +806,7 @@ PortalRunMulti(Portal portal, ...@@ -806,7 +806,7 @@ PortalRunMulti(Portal portal,
/* /*
* process a plannable query. * process a plannable query.
*/ */
elog(DEBUG2, "ProcessQuery"); elog(DEBUG3, "ProcessQuery");
/* Must always set snapshot for plannable queries */ /* Must always set snapshot for plannable queries */
SetQuerySnapshot(); SetQuerySnapshot();
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varbit.c,v 1.30 2003/05/12 23:08:50 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/varbit.c,v 1.31 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1321,7 +1321,7 @@ bitposition(PG_FUNCTION_ARGS) ...@@ -1321,7 +1321,7 @@ bitposition(PG_FUNCTION_ARGS)
mask2 = end_mask << (BITS_PER_BYTE - is); mask2 = end_mask << (BITS_PER_BYTE - is);
is_match = mask2 == 0; is_match = mask2 == 0;
#if 0 #if 0
elog(DEBUG3, "S. %d %d em=%2x sm=%2x r=%d", elog(DEBUG4, "S. %d %d em=%2x sm=%2x r=%d",
i, is, end_mask, mask2, is_match); i, is, end_mask, mask2, is_match);
#endif #endif
break; break;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.102 2002/11/13 00:39:47 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.103 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -164,7 +164,7 @@ CatalogCacheComputeHashValue(CatCache *cache, int nkeys, ScanKey cur_skey) ...@@ -164,7 +164,7 @@ CatalogCacheComputeHashValue(CatCache *cache, int nkeys, ScanKey cur_skey)
{ {
uint32 hashValue = 0; uint32 hashValue = 0;
CACHE4_elog(DEBUG1, "CatalogCacheComputeHashValue %s %d %p", CACHE4_elog(DEBUG2, "CatalogCacheComputeHashValue %s %d %p",
cache->cc_relname, cache->cc_relname,
nkeys, nkeys,
cache); cache);
...@@ -281,14 +281,14 @@ CatCachePrintStats(void) ...@@ -281,14 +281,14 @@ CatCachePrintStats(void)
long cc_lsearches = 0; long cc_lsearches = 0;
long cc_lhits = 0; long cc_lhits = 0;
elog(DEBUG1, "Catcache stats dump: %d/%d tuples in catcaches", elog(DEBUG2, "Catcache stats dump: %d/%d tuples in catcaches",
CacheHdr->ch_ntup, CacheHdr->ch_maxtup); CacheHdr->ch_ntup, CacheHdr->ch_maxtup);
for (cache = CacheHdr->ch_caches; cache; cache = cache->cc_next) for (cache = CacheHdr->ch_caches; cache; cache = cache->cc_next)
{ {
if (cache->cc_ntup == 0 && cache->cc_searches == 0) if (cache->cc_ntup == 0 && cache->cc_searches == 0)
continue; /* don't print unused caches */ continue; /* don't print unused caches */
elog(DEBUG1, "Catcache %s/%s: %d tup, %ld srch, %ld+%ld=%ld hits, %ld+%ld=%ld loads, %ld invals, %ld discards, %ld lsrch, %ld lhits", elog(DEBUG2, "Catcache %s/%s: %d tup, %ld srch, %ld+%ld=%ld hits, %ld+%ld=%ld loads, %ld invals, %ld discards, %ld lsrch, %ld lhits",
cache->cc_relname, cache->cc_relname,
cache->cc_indname, cache->cc_indname,
cache->cc_ntup, cache->cc_ntup,
...@@ -312,7 +312,7 @@ CatCachePrintStats(void) ...@@ -312,7 +312,7 @@ CatCachePrintStats(void)
cc_lsearches += cache->cc_lsearches; cc_lsearches += cache->cc_lsearches;
cc_lhits += cache->cc_lhits; cc_lhits += cache->cc_lhits;
} }
elog(DEBUG1, "Catcache totals: %d tup, %ld srch, %ld+%ld=%ld hits, %ld+%ld=%ld loads, %ld invals, %ld discards, %ld lsrch, %ld lhits", elog(DEBUG2, "Catcache totals: %d tup, %ld srch, %ld+%ld=%ld hits, %ld+%ld=%ld loads, %ld invals, %ld discards, %ld lsrch, %ld lhits",
CacheHdr->ch_ntup, CacheHdr->ch_ntup,
cc_searches, cc_searches,
cc_hits, cc_hits,
...@@ -419,7 +419,7 @@ CatalogCacheIdInvalidate(int cacheId, ...@@ -419,7 +419,7 @@ CatalogCacheIdInvalidate(int cacheId,
* sanity checks * sanity checks
*/ */
Assert(ItemPointerIsValid(pointer)); Assert(ItemPointerIsValid(pointer));
CACHE1_elog(DEBUG1, "CatalogCacheIdInvalidate: called"); CACHE1_elog(DEBUG2, "CatalogCacheIdInvalidate: called");
/* /*
* inspect caches to find the proper cache * inspect caches to find the proper cache
...@@ -476,7 +476,7 @@ CatalogCacheIdInvalidate(int cacheId, ...@@ -476,7 +476,7 @@ CatalogCacheIdInvalidate(int cacheId,
ct->dead = true; ct->dead = true;
else else
CatCacheRemoveCTup(ccp, ct); CatCacheRemoveCTup(ccp, ct);
CACHE1_elog(DEBUG1, "CatalogCacheIdInvalidate: invalidated"); CACHE1_elog(DEBUG2, "CatalogCacheIdInvalidate: invalidated");
#ifdef CATCACHE_STATS #ifdef CATCACHE_STATS
ccp->cc_invals++; ccp->cc_invals++;
#endif #endif
...@@ -641,12 +641,12 @@ ResetCatalogCaches(void) ...@@ -641,12 +641,12 @@ ResetCatalogCaches(void)
{ {
CatCache *cache; CatCache *cache;
CACHE1_elog(DEBUG1, "ResetCatalogCaches called"); CACHE1_elog(DEBUG2, "ResetCatalogCaches called");
for (cache = CacheHdr->ch_caches; cache; cache = cache->cc_next) for (cache = CacheHdr->ch_caches; cache; cache = cache->cc_next)
ResetCatalogCache(cache); ResetCatalogCache(cache);
CACHE1_elog(DEBUG1, "end of ResetCatalogCaches call"); CACHE1_elog(DEBUG2, "end of ResetCatalogCaches call");
} }
/* /*
...@@ -674,7 +674,7 @@ CatalogCacheFlushRelation(Oid relId) ...@@ -674,7 +674,7 @@ CatalogCacheFlushRelation(Oid relId)
{ {
CatCache *cache; CatCache *cache;
CACHE2_elog(DEBUG1, "CatalogCacheFlushRelation called for %u", relId); CACHE2_elog(DEBUG2, "CatalogCacheFlushRelation called for %u", relId);
for (cache = CacheHdr->ch_caches; cache; cache = cache->cc_next) for (cache = CacheHdr->ch_caches; cache; cache = cache->cc_next)
{ {
...@@ -744,7 +744,7 @@ CatalogCacheFlushRelation(Oid relId) ...@@ -744,7 +744,7 @@ CatalogCacheFlushRelation(Oid relId)
} }
} }
CACHE1_elog(DEBUG1, "end of CatalogCacheFlushRelation call"); CACHE1_elog(DEBUG2, "end of CatalogCacheFlushRelation call");
} }
/* /*
...@@ -756,14 +756,14 @@ CatalogCacheFlushRelation(Oid relId) ...@@ -756,14 +756,14 @@ CatalogCacheFlushRelation(Oid relId)
* structure initialized on the first access. * structure initialized on the first access.
*/ */
#ifdef CACHEDEBUG #ifdef CACHEDEBUG
#define InitCatCache_DEBUG1 \ #define InitCatCache_DEBUG2 \
do { \ do { \
elog(DEBUG1, "InitCatCache: rel=%s id=%d nkeys=%d size=%d\n", \ elog(DEBUG2, "InitCatCache: rel=%s id=%d nkeys=%d size=%d\n", \
cp->cc_relname, cp->id, cp->cc_nkeys, cp->cc_nbuckets); \ cp->cc_relname, cp->id, cp->cc_nkeys, cp->cc_nbuckets); \
} while(0) } while(0)
#else #else
#define InitCatCache_DEBUG1 #define InitCatCache_DEBUG2
#endif #endif
CatCache * CatCache *
...@@ -832,7 +832,7 @@ InitCatCache(int id, ...@@ -832,7 +832,7 @@ InitCatCache(int id,
* new cache is initialized as far as we can go for now. print some * new cache is initialized as far as we can go for now. print some
* debugging information, if appropriate. * debugging information, if appropriate.
*/ */
InitCatCache_DEBUG1; InitCatCache_DEBUG2;
/* /*
* add completed cache to top of group header's list * add completed cache to top of group header's list
...@@ -856,24 +856,24 @@ InitCatCache(int id, ...@@ -856,24 +856,24 @@ InitCatCache(int id,
* that the relcache entry can be opened at this point! * that the relcache entry can be opened at this point!
*/ */
#ifdef CACHEDEBUG #ifdef CACHEDEBUG
#define CatalogCacheInitializeCache_DEBUG1 \ #define CatalogCacheInitializeCache_DEBUG2 \
elog(DEBUG1, "CatalogCacheInitializeCache: cache @%p %s", cache, \ elog(DEBUG2, "CatalogCacheInitializeCache: cache @%p %s", cache, \
cache->cc_relname) cache->cc_relname)
#define CatalogCacheInitializeCache_DEBUG2 \ #define CatalogCacheInitializeCache_DEBUG2 \
do { \ do { \
if (cache->cc_key[i] > 0) { \ if (cache->cc_key[i] > 0) { \
elog(DEBUG1, "CatalogCacheInitializeCache: load %d/%d w/%d, %u", \ elog(DEBUG2, "CatalogCacheInitializeCache: load %d/%d w/%d, %u", \
i+1, cache->cc_nkeys, cache->cc_key[i], \ i+1, cache->cc_nkeys, cache->cc_key[i], \
tupdesc->attrs[cache->cc_key[i] - 1]->atttypid); \ tupdesc->attrs[cache->cc_key[i] - 1]->atttypid); \
} else { \ } else { \
elog(DEBUG1, "CatalogCacheInitializeCache: load %d/%d w/%d", \ elog(DEBUG2, "CatalogCacheInitializeCache: load %d/%d w/%d", \
i+1, cache->cc_nkeys, cache->cc_key[i]); \ i+1, cache->cc_nkeys, cache->cc_key[i]); \
} \ } \
} while(0) } while(0)
#else #else
#define CatalogCacheInitializeCache_DEBUG1 #define CatalogCacheInitializeCache_DEBUG2
#define CatalogCacheInitializeCache_DEBUG2 #define CatalogCacheInitializeCache_DEBUG2
#endif #endif
...@@ -885,7 +885,7 @@ CatalogCacheInitializeCache(CatCache *cache) ...@@ -885,7 +885,7 @@ CatalogCacheInitializeCache(CatCache *cache)
TupleDesc tupdesc; TupleDesc tupdesc;
int i; int i;
CatalogCacheInitializeCache_DEBUG1; CatalogCacheInitializeCache_DEBUG2;
/* /*
* Open the relation without locking --- we only need the tupdesc, * Open the relation without locking --- we only need the tupdesc,
...@@ -920,7 +920,7 @@ CatalogCacheInitializeCache(CatCache *cache) ...@@ -920,7 +920,7 @@ CatalogCacheInitializeCache(CatCache *cache)
heap_close(relation, NoLock); heap_close(relation, NoLock);
CACHE3_elog(DEBUG1, "CatalogCacheInitializeCache: %s, %d keys", CACHE3_elog(DEBUG2, "CatalogCacheInitializeCache: %s, %d keys",
cache->cc_relname, cache->cc_nkeys); cache->cc_relname, cache->cc_nkeys);
/* /*
...@@ -958,7 +958,7 @@ CatalogCacheInitializeCache(CatCache *cache) ...@@ -958,7 +958,7 @@ CatalogCacheInitializeCache(CatCache *cache)
/* Initialize sk_attno suitably for HeapKeyTest() and heap scans */ /* Initialize sk_attno suitably for HeapKeyTest() and heap scans */
cache->cc_skey[i].sk_attno = cache->cc_key[i]; cache->cc_skey[i].sk_attno = cache->cc_key[i];
CACHE4_elog(DEBUG1, "CatalogCacheInit %s %d %p", CACHE4_elog(DEBUG2, "CatalogCacheInit %s %d %p",
cache->cc_relname, cache->cc_relname,
i, i,
cache); cache);
...@@ -1150,7 +1150,7 @@ SearchCatCache(CatCache *cache, ...@@ -1150,7 +1150,7 @@ SearchCatCache(CatCache *cache,
{ {
ct->refcount++; ct->refcount++;
CACHE3_elog(DEBUG1, "SearchCatCache(%s): found in bucket %d", CACHE3_elog(DEBUG2, "SearchCatCache(%s): found in bucket %d",
cache->cc_relname, hashIndex); cache->cc_relname, hashIndex);
#ifdef CATCACHE_STATS #ifdef CATCACHE_STATS
...@@ -1161,7 +1161,7 @@ SearchCatCache(CatCache *cache, ...@@ -1161,7 +1161,7 @@ SearchCatCache(CatCache *cache,
} }
else else
{ {
CACHE3_elog(DEBUG1, "SearchCatCache(%s): found neg entry in bucket %d", CACHE3_elog(DEBUG2, "SearchCatCache(%s): found neg entry in bucket %d",
cache->cc_relname, hashIndex); cache->cc_relname, hashIndex);
#ifdef CATCACHE_STATS #ifdef CATCACHE_STATS
...@@ -1223,9 +1223,9 @@ SearchCatCache(CatCache *cache, ...@@ -1223,9 +1223,9 @@ SearchCatCache(CatCache *cache,
true); true);
heap_freetuple(ntp); heap_freetuple(ntp);
CACHE4_elog(DEBUG1, "SearchCatCache(%s): Contains %d/%d tuples", CACHE4_elog(DEBUG2, "SearchCatCache(%s): Contains %d/%d tuples",
cache->cc_relname, cache->cc_ntup, CacheHdr->ch_ntup); cache->cc_relname, cache->cc_ntup, CacheHdr->ch_ntup);
CACHE3_elog(DEBUG1, "SearchCatCache(%s): put neg entry in bucket %d", CACHE3_elog(DEBUG2, "SearchCatCache(%s): put neg entry in bucket %d",
cache->cc_relname, hashIndex); cache->cc_relname, hashIndex);
/* /*
...@@ -1237,9 +1237,9 @@ SearchCatCache(CatCache *cache, ...@@ -1237,9 +1237,9 @@ SearchCatCache(CatCache *cache,
return NULL; return NULL;
} }
CACHE4_elog(DEBUG1, "SearchCatCache(%s): Contains %d/%d tuples", CACHE4_elog(DEBUG2, "SearchCatCache(%s): Contains %d/%d tuples",
cache->cc_relname, cache->cc_ntup, CacheHdr->ch_ntup); cache->cc_relname, cache->cc_ntup, CacheHdr->ch_ntup);
CACHE3_elog(DEBUG1, "SearchCatCache(%s): put in bucket %d", CACHE3_elog(DEBUG2, "SearchCatCache(%s): put in bucket %d",
cache->cc_relname, hashIndex); cache->cc_relname, hashIndex);
#ifdef CATCACHE_STATS #ifdef CATCACHE_STATS
...@@ -1388,7 +1388,7 @@ SearchCatCacheList(CatCache *cache, ...@@ -1388,7 +1388,7 @@ SearchCatCacheList(CatCache *cache,
/* Bump the list's refcount and return it */ /* Bump the list's refcount and return it */
cl->refcount++; cl->refcount++;
CACHE2_elog(DEBUG1, "SearchCatCacheList(%s): found list", CACHE2_elog(DEBUG2, "SearchCatCacheList(%s): found list",
cache->cc_relname); cache->cc_relname);
#ifdef CATCACHE_STATS #ifdef CATCACHE_STATS
...@@ -1510,7 +1510,7 @@ SearchCatCacheList(CatCache *cache, ...@@ -1510,7 +1510,7 @@ SearchCatCacheList(CatCache *cache,
DLAddHead(&cache->cc_lists, &cl->cache_elem); DLAddHead(&cache->cc_lists, &cl->cache_elem);
CACHE3_elog(DEBUG1, "SearchCatCacheList(%s): made list of %d members", CACHE3_elog(DEBUG2, "SearchCatCacheList(%s): made list of %d members",
cache->cc_relname, nmembers); cache->cc_relname, nmembers);
return cl; return cl;
...@@ -1613,7 +1613,7 @@ CatalogCacheCreateEntry(CatCache *cache, HeapTuple ntp, ...@@ -1613,7 +1613,7 @@ CatalogCacheCreateEntry(CatCache *cache, HeapTuple ntp,
if (oldct->refcount == 0) if (oldct->refcount == 0)
{ {
CACHE2_elog(DEBUG1, "CatCacheCreateEntry(%s): Overflow, LRU removal", CACHE2_elog(DEBUG2, "CatCacheCreateEntry(%s): Overflow, LRU removal",
cache->cc_relname); cache->cc_relname);
#ifdef CATCACHE_STATS #ifdef CATCACHE_STATS
oldct->my_cache->cc_discards++; oldct->my_cache->cc_discards++;
...@@ -1731,7 +1731,7 @@ PrepareToInvalidateCacheTuple(Relation relation, ...@@ -1731,7 +1731,7 @@ PrepareToInvalidateCacheTuple(Relation relation,
CatCache *ccp; CatCache *ccp;
Oid reloid; Oid reloid;
CACHE1_elog(DEBUG1, "PrepareToInvalidateCacheTuple: called"); CACHE1_elog(DEBUG2, "PrepareToInvalidateCacheTuple: called");
/* /*
* sanity checks * sanity checks
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.59 2003/04/05 19:54:12 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.60 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -402,7 +402,7 @@ find_in_dynamic_libpath(const char *basename) ...@@ -402,7 +402,7 @@ find_in_dynamic_libpath(const char *basename)
sprintf(full, "%s/%s", mangled, basename); sprintf(full, "%s/%s", mangled, basename);
pfree(mangled); pfree(mangled);
elog(DEBUG2, "find_in_dynamic_libpath: trying %s", full); elog(DEBUG3, "find_in_dynamic_libpath: trying %s", full);
if (file_exists(full)) if (file_exists(full))
return full; return full;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.33 2003/05/15 16:35:29 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.34 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -62,13 +62,13 @@ ValidateBinary(char *path) ...@@ -62,13 +62,13 @@ ValidateBinary(char *path)
*/ */
if (stat(path, &buf) < 0) if (stat(path, &buf) < 0)
{ {
elog(DEBUG2, "ValidateBinary: can't stat \"%s\"", path); elog(DEBUG3, "ValidateBinary: can't stat \"%s\"", path);
return -1; return -1;
} }
if ((buf.st_mode & S_IFMT) != S_IFREG) if ((buf.st_mode & S_IFMT) != S_IFREG)
{ {
elog(DEBUG2, "ValidateBinary: \"%s\" is not a regular file", path); elog(DEBUG3, "ValidateBinary: \"%s\" is not a regular file", path);
return -1; return -1;
} }
...@@ -95,7 +95,7 @@ ValidateBinary(char *path) ...@@ -95,7 +95,7 @@ ValidateBinary(char *path)
is_r = buf.st_mode & S_IRUSR; is_r = buf.st_mode & S_IRUSR;
is_x = buf.st_mode & S_IXUSR; is_x = buf.st_mode & S_IXUSR;
if (!(is_r && is_x)) if (!(is_r && is_x))
elog(DEBUG2, "ValidateBinary: \"%s\" is not user read/execute", path); elog(DEBUG3, "ValidateBinary: \"%s\" is not user read/execute", path);
return is_x ? (is_r ? 0 : -2) : -1; return is_x ? (is_r ? 0 : -2) : -1;
} }
pwp = getpwuid(euid); pwp = getpwuid(euid);
...@@ -121,7 +121,7 @@ ValidateBinary(char *path) ...@@ -121,7 +121,7 @@ ValidateBinary(char *path)
is_r = buf.st_mode & S_IRGRP; is_r = buf.st_mode & S_IRGRP;
is_x = buf.st_mode & S_IXGRP; is_x = buf.st_mode & S_IXGRP;
if (!(is_r && is_x)) if (!(is_r && is_x))
elog(DEBUG2, "ValidateBinary: \"%s\" is not group read/execute", elog(DEBUG3, "ValidateBinary: \"%s\" is not group read/execute",
path); path);
return is_x ? (is_r ? 0 : -2) : -1; return is_x ? (is_r ? 0 : -2) : -1;
} }
...@@ -129,7 +129,7 @@ ValidateBinary(char *path) ...@@ -129,7 +129,7 @@ ValidateBinary(char *path)
is_r = buf.st_mode & S_IROTH; is_r = buf.st_mode & S_IROTH;
is_x = buf.st_mode & S_IXOTH; is_x = buf.st_mode & S_IXOTH;
if (!(is_r && is_x)) if (!(is_r && is_x))
elog(DEBUG2, "ValidateBinary: \"%s\" is not other read/execute", elog(DEBUG3, "ValidateBinary: \"%s\" is not other read/execute",
path); path);
return is_x ? (is_r ? 0 : -2) : -1; return is_x ? (is_r ? 0 : -2) : -1;
#endif #endif
...@@ -179,7 +179,7 @@ FindExec(char *full_path, const char *argv0, const char *binary_name) ...@@ -179,7 +179,7 @@ FindExec(char *full_path, const char *argv0, const char *binary_name)
if (ValidateBinary(buf) == 0) if (ValidateBinary(buf) == 0)
{ {
strncpy(full_path, buf, MAXPGPATH); strncpy(full_path, buf, MAXPGPATH);
elog(DEBUG1, "FindExec: found \"%s\" using argv[0]", full_path); elog(DEBUG2, "FindExec: found \"%s\" using argv[0]", full_path);
return 0; return 0;
} }
elog(LOG, "FindExec: invalid binary \"%s\"", buf); elog(LOG, "FindExec: invalid binary \"%s\"", buf);
...@@ -192,7 +192,7 @@ FindExec(char *full_path, const char *argv0, const char *binary_name) ...@@ -192,7 +192,7 @@ FindExec(char *full_path, const char *argv0, const char *binary_name)
*/ */
if ((p = getenv("PATH")) && *p) if ((p = getenv("PATH")) && *p)
{ {
elog(DEBUG1, "FindExec: searching PATH ..."); elog(DEBUG2, "FindExec: searching PATH ...");
path = strdup(p); /* make a modifiable copy */ path = strdup(p); /* make a modifiable copy */
for (startp = path, endp = strchr(path, ':'); for (startp = path, endp = strchr(path, ':');
startp && *startp; startp && *startp;
...@@ -213,7 +213,7 @@ FindExec(char *full_path, const char *argv0, const char *binary_name) ...@@ -213,7 +213,7 @@ FindExec(char *full_path, const char *argv0, const char *binary_name)
{ {
case 0: /* found ok */ case 0: /* found ok */
strncpy(full_path, buf, MAXPGPATH); strncpy(full_path, buf, MAXPGPATH);
elog(DEBUG1, "FindExec: found \"%s\" using PATH", elog(DEBUG2, "FindExec: found \"%s\" using PATH",
full_path); full_path);
free(path); free(path);
return 0; return 0;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* *
* Copyright 2000 by PostgreSQL Global Development Group * Copyright 2000 by PostgreSQL Global Development Group
* *
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc-file.l,v 1.14 2002/11/08 20:23:57 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc-file.l,v 1.15 2003/05/27 17:49:46 momjian Exp $
*/ */
%{ %{
...@@ -136,7 +136,7 @@ ProcessConfigFile(GucContext context) ...@@ -136,7 +136,7 @@ ProcessConfigFile(GucContext context)
Assert(context == PGC_POSTMASTER || context == PGC_BACKEND Assert(context == PGC_POSTMASTER || context == PGC_BACKEND
|| context == PGC_SIGHUP); || context == PGC_SIGHUP);
Assert(DataDir); Assert(DataDir);
elevel = (context == PGC_SIGHUP) ? DEBUG3 : ERROR; elevel = (context == PGC_SIGHUP) ? DEBUG4 : ERROR;
/* /*
* Open file * Open file
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>. * Written by Peter Eisentraut <peter_e@gmx.net>.
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.124 2003/05/14 03:26:02 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.125 2003/05/27 17:49:46 momjian Exp $
* *
*-------------------------------------------------------------------- *--------------------------------------------------------------------
*/ */
...@@ -1721,7 +1721,7 @@ set_config_option(const char *name, const char *value, ...@@ -1721,7 +1721,7 @@ set_config_option(const char *name, const char *value,
bool makeDefault; bool makeDefault;
if (context == PGC_SIGHUP || source == PGC_S_DEFAULT) if (context == PGC_SIGHUP || source == PGC_S_DEFAULT)
elevel = DEBUG1; elevel = DEBUG2;
else if (source == PGC_S_DATABASE || source == PGC_S_USER) else if (source == PGC_S_DATABASE || source == PGC_S_USER)
elevel = INFO; elevel = INFO;
else else
...@@ -1830,7 +1830,7 @@ set_config_option(const char *name, const char *value, ...@@ -1830,7 +1830,7 @@ set_config_option(const char *name, const char *value,
{ {
if (DoIt && !makeDefault) if (DoIt && !makeDefault)
{ {
elog(DEBUG2, "%s: setting ignored because previous source is higher priority", elog(DEBUG3, "%s: setting ignored because previous source is higher priority",
name); name);
return true; return true;
} }
...@@ -2855,7 +2855,7 @@ write_nondefault_variables(GucContext context) ...@@ -2855,7 +2855,7 @@ write_nondefault_variables(GucContext context)
Assert(context == PGC_POSTMASTER || context == PGC_SIGHUP); Assert(context == PGC_POSTMASTER || context == PGC_SIGHUP);
Assert(DataDir); Assert(DataDir);
elevel = (context == PGC_SIGHUP) ? DEBUG3 : ERROR; elevel = (context == PGC_SIGHUP) ? DEBUG4 : ERROR;
/* /*
* Open file * Open file
...@@ -3366,7 +3366,7 @@ assign_msglvl(int *var, const char *newval, bool doit, bool interactive) ...@@ -3366,7 +3366,7 @@ assign_msglvl(int *var, const char *newval, bool doit, bool interactive)
if (strcasecmp(newval, "debug") == 0) if (strcasecmp(newval, "debug") == 0)
{ {
if (doit) if (doit)
(*var) = DEBUG1; (*var) = DEBUG2;
} }
else if (strcasecmp(newval, "debug5") == 0) else if (strcasecmp(newval, "debug5") == 0)
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Id: elog.h,v 1.43 2003/05/22 17:20:43 petere Exp $ * $Id: elog.h,v 1.44 2003/05/27 17:49:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#define DEBUG4 11 #define DEBUG4 11
#define DEBUG3 12 #define DEBUG3 12
#define DEBUG2 13 #define DEBUG2 13
#define DEBUG1 14 #define DEBUG1 14 /* used by GUC debug_* variables */
#define LOG 15 /* Server operational messages; sent only #define LOG 15 /* Server operational messages; sent only
* to server log by default. */ * to server log by default. */
#define COMMERROR 16 /* Client communication problems; same as #define COMMERROR 16 /* Client communication problems; same as
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
int int
elog_DEBUG(void) elog_DEBUG(void)
{ {
return DEBUG1; return DEBUG2;
} }
int int
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* procedural language * procedural language
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.43 2003/05/05 16:46:27 tgl Exp $ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.44 2003/05/27 17:49:47 momjian Exp $
* *
* This software is copyrighted by Jan Wieck - Hamburg. * This software is copyrighted by Jan Wieck - Hamburg.
* *
...@@ -1294,7 +1294,7 @@ raise_level : K_EXCEPTION ...@@ -1294,7 +1294,7 @@ raise_level : K_EXCEPTION
} }
| K_DEBUG | K_DEBUG
{ {
$$ = DEBUG1; $$ = DEBUG2;
} }
; ;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/pl/plpython/plpython.c,v 1.31 2003/03/10 22:28:22 tgl Exp $ * $Header: /cvsroot/pgsql/src/pl/plpython/plpython.c,v 1.32 2003/05/27 17:49:47 momjian Exp $
* *
********************************************************************* *********************************************************************
*/ */
...@@ -2661,7 +2661,7 @@ static PyObject *PLy_output(int, PyObject *, PyObject *); ...@@ -2661,7 +2661,7 @@ static PyObject *PLy_output(int, PyObject *, PyObject *);
PyObject * PyObject *
PLy_debug(PyObject * self, PyObject * args) PLy_debug(PyObject * self, PyObject * args)
{ {
return PLy_output(DEBUG1, self, args); return PLy_output(DEBUG2, self, args);
} }
PyObject * PyObject *
......
/* $Header: /cvsroot/pgsql/src/pl/plpython/Attic/plpython.h,v 1.6 2002/03/06 06:10:48 momjian Exp $ */ /* $Header: /cvsroot/pgsql/src/pl/plpython/Attic/plpython.h,v 1.7 2003/05/27 17:49:47 momjian Exp $ */
#ifndef PLPYTHON_H #ifndef PLPYTHON_H
#define PLPYTHON_H #define PLPYTHON_H
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
#if DEBUG_LEVEL #if DEBUG_LEVEL
#define CALL_LEVEL_INC() do { PLy_call_level += 1; \ #define CALL_LEVEL_INC() do { PLy_call_level += 1; \
elog(DEBUG3, "Level: %d", PLy_call_level); } while (0) elog(DEBUG4, "Level: %d", PLy_call_level); } while (0)
#define CALL_LEVEL_DEC() do { elog(DEBUG3, "Level: %d", PLy_call_level); \ #define CALL_LEVEL_DEC() do { elog(DEBUG4, "Level: %d", PLy_call_level); \
PLy_call_level -= 1; } while (0) PLy_call_level -= 1; } while (0)
#else #else
#define CALL_LEVEL_INC() do { PLy_call_level += 1; } while (0) #define CALL_LEVEL_INC() do { PLy_call_level += 1; } while (0)
...@@ -54,10 +54,10 @@ ...@@ -54,10 +54,10 @@
/* temporary debugging macros /* temporary debugging macros
*/ */
#if DEBUG_LEVEL #if DEBUG_LEVEL
#define enter() elog(DEBUG3, "Enter(%d): %s", func_enter_calls++,__FUNCTION__) #define enter() elog(DEBUG4, "Enter(%d): %s", func_enter_calls++,__FUNCTION__)
#define leave() elog(DEBUG3, "Leave(%d): %s", func_leave_calls++,__FUNCTION__) #define leave() elog(DEBUG4, "Leave(%d): %s", func_leave_calls++,__FUNCTION__)
#define mark() elog(DEBUG3, "Mark: %s:%d", __FUNCTION__, __LINE__); #define mark() elog(DEBUG4, "Mark: %s:%d", __FUNCTION__, __LINE__);
#define refc(O) elog(DEBUG3, "Ref<%p>:<%d>:%s:%d", (O), (((O) == NULL) ? -1 : (O)->ob_refcnt), __FUNCTION__, __LINE__) #define refc(O) elog(DEBUG4, "Ref<%p>:<%d>:%s:%d", (O), (((O) == NULL) ? -1 : (O)->ob_refcnt), __FUNCTION__, __LINE__)
#else #else
#define enter() #define enter()
#define leave() #define leave()
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
* ENHANCEMENTS, OR MODIFICATIONS. * ENHANCEMENTS, OR MODIFICATIONS.
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.70 2003/05/16 13:37:00 tgl Exp $ * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.71 2003/05/27 17:49:47 momjian Exp $
* *
**********************************************************************/ **********************************************************************/
...@@ -1272,7 +1272,7 @@ pltcl_elog(ClientData cdata, Tcl_Interp *interp, ...@@ -1272,7 +1272,7 @@ pltcl_elog(ClientData cdata, Tcl_Interp *interp,
} }
if (strcmp(argv[1], "DEBUG") == 0) if (strcmp(argv[1], "DEBUG") == 0)
level = DEBUG1; level = DEBUG2;
else if (strcmp(argv[1], "LOG") == 0) else if (strcmp(argv[1], "LOG") == 0)
level = LOG; level = LOG;
else if (strcmp(argv[1], "INFO") == 0) else if (strcmp(argv[1], "INFO") == 0)
......
/* /*
* $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.55 2003/03/20 04:52:35 momjian Exp $ * $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.56 2003/05/27 17:49:47 momjian Exp $
*/ */
#include "postgres.h" #include "postgres.h"
...@@ -435,7 +435,7 @@ funny_dup17(PG_FUNCTION_ARGS) ...@@ -435,7 +435,7 @@ funny_dup17(PG_FUNCTION_ARGS)
)))); ))));
} }
elog(DEBUG3, "funny_dup17 (fired %s) on level %3d: %d/%d tuples inserted/selected", elog(DEBUG4, "funny_dup17 (fired %s) on level %3d: %d/%d tuples inserted/selected",
when, *level, inserted, selected); when, *level, inserted, selected);
SPI_finish(); SPI_finish();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment