diff options
| author | Bruce Momjian | 2003-05-27 17:49:47 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2003-05-27 17:49:47 +0000 |
| commit | 98b6f37e47a9eb3540493caabf57d0f952ebdc6d (patch) | |
| tree | 656cf699ff40581f8f465e820aa62cb4a55547a0 /src/backend/bootstrap | |
| parent | 24daeb8e73f924df26a38185296d5a6a6c49acb1 (diff) | |
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.
Diffstat (limited to 'src/backend/bootstrap')
| -rw-r--r-- | src/backend/bootstrap/bootparse.y | 18 | ||||
| -rw-r--r-- | src/backend/bootstrap/bootstrap.c | 30 |
2 files changed, 24 insertions, 24 deletions
diff --git a/src/backend/bootstrap/bootparse.y b/src/backend/bootstrap/bootparse.y index 100972b3fc1..ee624697776 100644 --- a/src/backend/bootstrap/bootparse.y +++ b/src/backend/bootstrap/bootparse.y @@ -9,7 +9,7 @@ * * * 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 do_start() { StartTransactionCommand(); - elog(DEBUG3, "start transaction"); + elog(DEBUG4, "start transaction"); } @@ -64,7 +64,7 @@ static void do_end() { CommitTransactionCommand(); - elog(DEBUG3, "commit transaction"); + elog(DEBUG4, "commit transaction"); if (isatty(0)) { printf("bootstrap> "); @@ -155,7 +155,7 @@ Boot_CreateStmt: { do_start(); numattr = 0; - elog(DEBUG3, "creating%s%s relation %s...", + elog(DEBUG4, "creating%s%s relation %s...", $2 ? " bootstrap" : "", $3 ? " shared" : "", LexIDStr($5)); @@ -176,7 +176,7 @@ Boot_CreateStmt: { 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); } @@ -186,7 +186,7 @@ Boot_CreateStmt: $3, true, true); - elog(DEBUG3, "bootstrap relation created"); + elog(DEBUG4, "bootstrap relation created"); } else { @@ -199,7 +199,7 @@ Boot_CreateStmt: $3, ONCOMMIT_NOOP, true); - elog(DEBUG3, "relation created with oid %u", id); + elog(DEBUG4, "relation created with oid %u", id); } do_end(); } @@ -210,9 +210,9 @@ Boot_InsertStmt: { do_start(); if ($2) - elog(DEBUG3, "inserting row with oid %u...", $2); + elog(DEBUG4, "inserting row with oid %u...", $2); else - elog(DEBUG3, "inserting row..."); + elog(DEBUG4, "inserting row..."); num_columns_read = 0; } LPAREN boot_tuplelist RPAREN diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 78383342d00..c903afaa003 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * 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) if (boot_reldesc != 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); boot_reldesc = heap_openr(relname, NoLock); @@ -553,7 +553,7 @@ boot_openrel(char *relname) { 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, at->atttypid); } @@ -584,7 +584,7 @@ closerel(char *name) elog(ERROR, "no open relation to close"); else { - elog(DEBUG3, "close relation %s", relname ? relname : "(null)"); + elog(DEBUG4, "close relation %s", relname ? relname : "(null)"); heap_close(boot_reldesc, NoLock); boot_reldesc = (Relation) NULL; } @@ -617,7 +617,7 @@ DefineAttr(char *name, char *type, int attnum) MemSet(attrtypes[attnum], 0, ATTRIBUTE_TUPLE_SIZE); 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 */ typeoid = gettype(type); @@ -707,7 +707,7 @@ InsertOneTuple(Oid objectid) TupleDesc tupDesc; 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, RelationGetForm(boot_reldesc)->relhasoids, @@ -719,7 +719,7 @@ InsertOneTuple(Oid objectid) simple_heap_insert(boot_reldesc, tuple); heap_freetuple(tuple); - elog(DEBUG3, "row inserted"); + elog(DEBUG4, "row inserted"); /* * Reset blanks for next tuple @@ -741,13 +741,13 @@ InsertOneValue(char *value, int i) 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) { struct typmap *ap; - elog(DEBUG3, "Typ != NULL"); + elog(DEBUG4, "Typ != NULL"); app = Typ; while (*app && (*app)->am_oid != boot_reldesc->rd_att->attrs[i]->atttypid) ++app; @@ -765,7 +765,7 @@ InsertOneValue(char *value, int i) values[i], ObjectIdGetDatum(ap->am_typ.typelem), Int32GetDatum(-1))); - elog(DEBUG3, " -> %s", prt); + elog(DEBUG4, " -> %s", prt); pfree(prt); } else @@ -777,7 +777,7 @@ InsertOneValue(char *value, int i) } if (typeindex >= n_types) 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, CStringGetDatum(value), ObjectIdGetDatum(Procid[typeindex].elem), @@ -786,10 +786,10 @@ InsertOneValue(char *value, int i) values[i], ObjectIdGetDatum(Procid[typeindex].elem), Int32GetDatum(-1))); - elog(DEBUG3, " -> %s", prt); + elog(DEBUG4, " -> %s", prt); pfree(prt); } - elog(DEBUG3, "inserted"); + elog(DEBUG4, "inserted"); } /* ---------------- @@ -799,7 +799,7 @@ InsertOneValue(char *value, int i) void InsertOneNull(int i) { - elog(DEBUG3, "inserting column %d NULL", i); + elog(DEBUG4, "inserting column %d NULL", i); Assert(i >= 0 || i < MAXATTR); values[i] = PointerGetDatum(NULL); Blanks[i] = 'n'; @@ -893,7 +893,7 @@ gettype(char *type) if (strncmp(type, Procid[i].name, NAMEDATALEN) == 0) return i; } - elog(DEBUG3, "external type: %s", type); + elog(DEBUG4, "external type: %s", type); rel = heap_openr(TypeRelationName, NoLock); scan = heap_beginscan(rel, SnapshotNow, 0, (ScanKey) NULL); i = 0; |
