diff options
Diffstat (limited to 'src/backend')
70 files changed, 409 insertions, 405 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index 586e5692f8b..34013f46889 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.90 2002/03/05 05:30:31 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.91 2002/03/06 06:09:15 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1926,7 +1926,7 @@ gist_dumptree(Relation r, int level, BlockNumber blk, OffsetNumber coff) maxoff = PageGetMaxOffsetNumber(page); - elog(NOTICE, "%sPage: %d %s blk: %d maxoff: %d free: %d", pred, + elog(DEBUG3, "%sPage: %d %s blk: %d maxoff: %d free: %d", pred, coff, (opaque->flags & F_LEAF) ? "LEAF" : "INTE", (int) blk, (int) maxoff, PageGetFreeSpace(page)); @@ -1936,7 +1936,7 @@ gist_dumptree(Relation r, int level, BlockNumber blk, OffsetNumber coff) which = (IndexTuple) PageGetItem(page, iid); cblk = ItemPointerGetBlockNumber(&(which->t_tid)); #ifdef PRINTTUPLE - elog(NOTICE, "%s Tuple. blk: %d size: %d", pred, (int) cblk, + elog(DEBUG3, "%s Tuple. blk: %d size: %d", pred, (int) cblk, IndexTupleSize(which)); #endif diff --git a/src/backend/access/nbtree/nbtinsert.c b/src/backend/access/nbtree/nbtinsert.c index d85fc2a966e..3a94297188c 100644 --- a/src/backend/access/nbtree/nbtinsert.c +++ b/src/backend/access/nbtree/nbtinsert.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.89 2002/03/02 21:39:18 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.90 2002/03/06 06:09:17 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -520,7 +520,7 @@ _bt_insertonpg(Relation rel, elog(ERROR, "bt_insertonpg[%s]: no root page found", RelationGetRelationName(rel)); _bt_wrtbuf(rel, rbuf); _bt_wrtnorelbuf(rel, buf); - elog(NOTICE, "bt_insertonpg[%s]: root page unfound - fixing upper levels", RelationGetRelationName(rel)); + elog(WARNING, "bt_insertonpg[%s]: root page unfound - fixing upper levels", RelationGetRelationName(rel)); _bt_fixup(rel, buf); goto formres; } @@ -570,7 +570,7 @@ _bt_insertonpg(Relation rel, elog(ERROR, "_bt_getstackbuf: my bits moved right off the end of the world!" "\n\tRecreate index %s.", RelationGetRelationName(rel)); pfree(new_item); - elog(NOTICE, "bt_insertonpg[%s]: parent page unfound - fixing branch", RelationGetRelationName(rel)); + elog(WARNING, "bt_insertonpg[%s]: parent page unfound - fixing branch", RelationGetRelationName(rel)); _bt_fixbranch(rel, bknum, rbknum, stack); goto formres; } @@ -1574,7 +1574,7 @@ _bt_fixtree(Relation rel, BlockNumber blkno) /* Call _bt_fixroot() if there is no upper level */ if (BTreeInvalidParent(opaque)) { - elog(NOTICE, "bt_fixtree[%s]: fixing root page", RelationGetRelationName(rel)); + elog(WARNING, "bt_fixtree[%s]: fixing root page", RelationGetRelationName(rel)); buf = _bt_fixroot(rel, buf, true); _bt_relbuf(rel, buf); return; @@ -1925,7 +1925,7 @@ _bt_fixbranch(Relation rel, BlockNumber lblkno, break; } - elog(NOTICE, "bt_fixbranch[%s]: fixing upper levels", RelationGetRelationName(rel)); + elog(WARNING, "bt_fixbranch[%s]: fixing upper levels", RelationGetRelationName(rel)); _bt_fixup(rel, buf); return; @@ -1956,7 +1956,7 @@ _bt_fixup(Relation rel, Buffer buf) { blkno = opaque->btpo_parent; _bt_relbuf(rel, buf); - elog(NOTICE, "bt_fixup[%s]: checking/fixing upper levels", RelationGetRelationName(rel)); + elog(WARNING, "bt_fixup[%s]: checking/fixing upper levels", RelationGetRelationName(rel)); _bt_fixtree(rel, blkno); return; } @@ -1971,7 +1971,7 @@ _bt_fixup(Relation rel, Buffer buf) * Ok, we are on the leftmost page, it's write locked by us and its * btpo_parent points to meta page - time for _bt_fixroot(). */ - elog(NOTICE, "bt_fixup[%s]: fixing root page", RelationGetRelationName(rel)); + elog(WARNING, "bt_fixup[%s]: fixing root page", RelationGetRelationName(rel)); buf = _bt_fixroot(rel, buf, true); _bt_relbuf(rel, buf); } diff --git a/src/backend/access/nbtree/nbtpage.c b/src/backend/access/nbtree/nbtpage.c index 17006ed06ce..7a30b8001fa 100644 --- a/src/backend/access/nbtree/nbtpage.c +++ b/src/backend/access/nbtree/nbtpage.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.55 2002/01/15 22:14:17 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.56 2002/03/06 06:09:18 momjian Exp $ * * NOTES * Postgres btree pages look like ordinary relation pages. The opaque @@ -253,7 +253,7 @@ _bt_getroot(Relation rel, int access) /* handle concurrent fix of root page */ if (BTreeInvalidParent(rootopaque)) /* unupdated! */ { - elog(NOTICE, "bt_getroot[%s]: fixing root page", RelationGetRelationName(rel)); + elog(WARNING, "bt_getroot[%s]: fixing root page", RelationGetRelationName(rel)); newrootbuf = _bt_fixroot(rel, rootbuf, true); LockBuffer(newrootbuf, BUFFER_LOCK_UNLOCK); LockBuffer(newrootbuf, BT_READ); diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index 995d821de93..f5e3ad8e199 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.116 2002/03/02 21:39:19 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.117 2002/03/06 06:09:21 momjian Exp $ * * NOTES * Transaction aborts can now occur two ways: @@ -920,7 +920,7 @@ CommitTransaction(void) * check the current transaction state */ if (s->state != TRANS_INPROGRESS) - elog(NOTICE, "CommitTransaction and not in in-progress state"); + elog(WARNING, "CommitTransaction and not in in-progress state"); /* * Tell the trigger manager that this transaction is about to be @@ -1044,7 +1044,7 @@ AbortTransaction(void) * check the current transaction state */ if (s->state != TRANS_INPROGRESS) - elog(NOTICE, "AbortTransaction and not in in-progress state"); + elog(WARNING, "AbortTransaction and not in in-progress state"); /* * set the current transaction state information appropriately during @@ -1163,7 +1163,7 @@ StartTransactionCommand(void) * warning and change to the in-progress state. */ case TBLOCK_BEGIN: - elog(NOTICE, "StartTransactionCommand: unexpected TBLOCK_BEGIN"); + elog(WARNING, "StartTransactionCommand: unexpected TBLOCK_BEGIN"); s->blockState = TBLOCK_INPROGRESS; break; @@ -1184,7 +1184,7 @@ StartTransactionCommand(void) * and change to the default state. */ case TBLOCK_END: - elog(NOTICE, "StartTransactionCommand: unexpected TBLOCK_END"); + elog(WARNING, "StartTransactionCommand: unexpected TBLOCK_END"); s->blockState = TBLOCK_DEFAULT; CommitTransaction(); StartTransaction(); @@ -1207,7 +1207,7 @@ StartTransactionCommand(void) * default. */ case TBLOCK_ENDABORT: - elog(NOTICE, "StartTransactionCommand: unexpected TBLOCK_ENDABORT"); + elog(WARNING, "StartTransactionCommand: unexpected TBLOCK_ENDABORT"); break; } @@ -1387,7 +1387,7 @@ BeginTransactionBlock(void) * check the current transaction state */ if (s->blockState != TBLOCK_DEFAULT) - elog(NOTICE, "BEGIN: already a transaction in progress"); + elog(WARNING, "BEGIN: already a transaction in progress"); /* * set the current transaction block state information appropriately @@ -1444,11 +1444,11 @@ EndTransactionBlock(void) /* * here, the user issued COMMIT when not inside a transaction. Issue a - * notice and go to abort state. The upcoming call to + * WARNING and go to abort state. The upcoming call to * CommitTransactionCommand() will then put us back into the default * state. */ - elog(NOTICE, "COMMIT: no transaction in progress"); + elog(WARNING, "COMMIT: no transaction in progress"); AbortTransaction(); s->blockState = TBLOCK_ENDABORT; } @@ -1481,11 +1481,11 @@ AbortTransactionBlock(void) /* * here, the user issued ABORT when not inside a transaction. Issue a - * notice and go to abort state. The upcoming call to + * WARNING and go to abort state. The upcoming call to * CommitTransactionCommand() will then put us back into the default * state. */ - elog(NOTICE, "ROLLBACK: no transaction in progress"); + elog(WARNING, "ROLLBACK: no transaction in progress"); AbortTransaction(); s->blockState = TBLOCK_ENDABORT; } @@ -1528,11 +1528,11 @@ UserAbortTransactionBlock(void) /* * here, the user issued ABORT when not inside a transaction. Issue a - * notice and go to abort state. The upcoming call to + * WARNING and go to abort state. The upcoming call to * CommitTransactionCommand() will then put us back into the default * state. */ - elog(NOTICE, "ROLLBACK: no transaction in progress"); + elog(WARNING, "ROLLBACK: no transaction in progress"); AbortTransaction(); s->blockState = TBLOCK_ENDABORT; } diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 572f892bd3d..add269577b6 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.88 2002/03/02 21:39:20 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.89 2002/03/06 06:09:22 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1284,7 +1284,7 @@ XLogFlush(XLogRecPtr record) * CreateCheckpoint will try to flush it at the end of recovery.) * * The current approach is to ERROR under normal conditions, but only - * NOTICE during recovery, so that the system can be brought up even if + * WARNING during recovery, so that the system can be brought up even if * there's a corrupt LSN. Note that for calls from xact.c, the ERROR * will be promoted to PANIC since xact.c calls this routine inside a * critical section. However, calls from bufmgr.c are not within @@ -1292,7 +1292,7 @@ XLogFlush(XLogRecPtr record) * on a data page. */ if (XLByteLT(LogwrtResult.Flush, record)) - elog(InRecovery ? NOTICE : ERROR, + elog(InRecovery ? WARNING : ERROR, "XLogFlush: request %X/%X is not satisfied --- flushed only to %X/%X", record.xlogid, record.xrecoff, LogwrtResult.Flush.xlogid, LogwrtResult.Flush.xrecoff); @@ -1609,7 +1609,7 @@ MoveOfflineLogs(uint32 log, uint32 seg, XLogRecPtr endptr) { elog(LOG, "archiving transaction log file %s", xlde->d_name); - elog(NOTICE, "archiving log files is not implemented!"); + elog(WARNING, "archiving log files is not implemented!"); } else { @@ -2091,12 +2091,12 @@ WriteControlFile(void) StrNCpy(ControlFile->lc_ctype, localeptr, LOCALE_NAME_BUFLEN); /* - * Issue warning notice if initdb'ing in a locale that will not permit + * Issue warning WARNING if initdb'ing in a locale that will not permit * LIKE index optimization. This is not a clean place to do it, but I * don't see a better place either... */ if (!locale_is_like_safe()) - elog(NOTICE, "Initializing database with %s collation order." + elog(WARNING, "Initializing database with %s collation order." "\n\tThis locale setting will prevent use of index optimization for" "\n\tLIKE and regexp searches. If you are concerned about speed of" "\n\tsuch queries, you may wish to set LC_COLLATE to \"C\" and" diff --git a/src/backend/catalog/aclchk.c b/src/backend/catalog/aclchk.c index cbef4baddc2..2bdacbdf3b3 100644 --- a/src/backend/catalog/aclchk.c +++ b/src/backend/catalog/aclchk.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.55 2002/03/02 21:39:22 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.56 2002/03/06 06:09:24 momjian Exp $ * * NOTES * See acl.h. @@ -631,7 +631,7 @@ in_group(AclId uid, AclId gid) ReleaseSysCache(tuple); } else - elog(NOTICE, "in_group: group %u not found", gid); + elog(WARNING, "in_group: group %u not found", gid); return result; } diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c index e14abe65676..61fc2a451b9 100644 --- a/src/backend/catalog/heap.c +++ b/src/backend/catalog/heap.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.183 2002/03/03 17:47:54 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.184 2002/03/06 06:09:25 momjian Exp $ * * * INTERFACE ROUTINES @@ -378,7 +378,7 @@ CheckAttributeNames(TupleDesc tupdesc, bool relhasoids) elog(ERROR, "name of column \"%s\" conflicts with an existing system column", NameStr(tupdesc->attrs[i]->attname)); if (tupdesc->attrs[i]->atttypid == UNKNOWNOID) - elog(NOTICE, "Attribute '%s' has an unknown type" + elog(WARNING, "Attribute '%s' has an unknown type" "\n\tProceeding with relation creation anyway", NameStr(tupdesc->attrs[i]->attname)); } diff --git a/src/backend/catalog/pg_proc.c b/src/backend/catalog/pg_proc.c index 3035df4502b..2c398bc0369 100644 --- a/src/backend/catalog/pg_proc.c +++ b/src/backend/catalog/pg_proc.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.64 2002/02/18 23:11:08 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.65 2002/03/06 06:09:26 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -106,7 +106,7 @@ ProcedureCreate(char *procedureName, elog(ERROR, "argument type %s does not exist", typnam); if (!defined) - elog(NOTICE, "argument type %s is only a shell", + elog(WARNING, "argument type %s is only a shell", typnam); } @@ -166,7 +166,7 @@ ProcedureCreate(char *procedureName, if (!OidIsValid(typeObjectId)) { - elog(NOTICE, "ProcedureCreate: type %s is not yet defined", + elog(WARNING, "ProcedureCreate: type %s is not yet defined", returnTypeName); typeObjectId = TypeShellMake(returnTypeName); if (!OidIsValid(typeObjectId)) @@ -174,7 +174,7 @@ ProcedureCreate(char *procedureName, returnTypeName); } else if (!defined) - elog(NOTICE, "return type %s is only a shell", + elog(WARNING, "return type %s is only a shell", returnTypeName); } diff --git a/src/backend/commands/_deadcode/recipe.c b/src/backend/commands/_deadcode/recipe.c index 94c80ca0860..fba78820177 100644 --- a/src/backend/commands/_deadcode/recipe.c +++ b/src/backend/commands/_deadcode/recipe.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/recipe.c,v 1.15 2001/11/05 17:46:25 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/recipe.c,v 1.16 2002/03/06 06:09:40 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -39,7 +39,7 @@ extern CommandDest whereToSendOutput; void beginRecipe(RecipeStmt *stmt) { - elog(NOTICE, "You must compile with TIOGA defined in order to use recipes\n"); + elog(WARNING, "You must compile with TIOGA defined in order to use recipes\n"); } #else @@ -175,7 +175,7 @@ beginRecipe(RecipeStmt *stmt) e = r->eyes->val[i]; if (e->inNodes->num > 1) { - elog(NOTICE, + elog(WARNING, "beginRecipe: Currently eyes cannot have more than one input"); } if (e->inNodes->num == 0) @@ -185,7 +185,7 @@ beginRecipe(RecipeStmt *stmt) } #ifdef DEBUG_RECIPE - elog(NOTICE, "beginRecipe: eyes[%d] = %s\n", i, e->nodeName); + elog(WARNING, "beginRecipe: eyes[%d] = %s\n", i, e->nodeName); #endif /* DEBUG_RECIPE */ qList = tg_parseSubQuery(r, e->inNodes->val[0], teeInfo); @@ -237,7 +237,7 @@ beginRecipe(RecipeStmt *stmt) tplan = planner(teeInfo->val[t].tpi_parsetree); /* now add a tee node to the root of the plan */ - elog(NOTICE, "adding tee plan node to the root of the %s\n", + elog(WARNING, "adding tee plan node to the root of the %s\n", teeInfo->val[t].tpi_relName); newplan = (Tee *) makeNode(Tee); newplan->plan.targetlist = tplan->targetlist; @@ -285,7 +285,7 @@ beginRecipe(RecipeStmt *stmt) plan, attinfo, whereToSendOutput); - elog(NOTICE, "beginRecipe: cursor named %s is now available", portalName); + elog(WARNING, "beginRecipe: cursor named %s is now available", portalName); } } @@ -499,7 +499,7 @@ tg_replaceNumberedParam(Node *expression, } } else - elog(NOTICE, "tg_replaceNumberedParam: unexpected paramkind value of %d", p->paramkind); + elog(WARNING, "tg_replaceNumberedParam: unexpected paramkind value of %d", p->paramkind); } break; case T_Expr: @@ -624,7 +624,7 @@ tg_rewriteParamsInExpr(Node *expression, QueryTreeList * inputQlist) } } else - elog(NOTICE, "tg_rewriteParamsInExpr: unexpected paramkind value of %d", p->paramkind); + elog(WARNING, "tg_rewriteParamsInExpr: unexpected paramkind value of %d", p->paramkind); } break; case T_Expr: @@ -709,7 +709,7 @@ getParamTypes(TgElement * elem, Oid *typev) if (!OidIsValid(toid)) elog(ERROR, "getParamTypes: arg type '%s' is not defined", t); if (!defined) - elog(NOTICE, "getParamTypes: arg type '%s' is only a shell", t); + elog(WARNING, "getParamTypes: arg type '%s' is only a shell", t); } typev[parameterCount++] = toid; } @@ -834,7 +834,7 @@ tg_parseSubQuery(TgRecipe * r, TgNode * n, TeeInfo * teeInfo) */ #ifdef DEBUG_RECIPE - elog(NOTICE, "calling parser with %s", elem->src); + elog(WARNING, "calling parser with %s", elem->src); #endif /* DEBUG_RECIPE */ parameterCount = getParamTypes(elem, typev); @@ -843,7 +843,7 @@ tg_parseSubQuery(TgRecipe * r, TgNode * n, TeeInfo * teeInfo) if (qList->len > 1) { - elog(NOTICE, + elog(WARNING, "tg_parseSubQuery: parser produced > 1 query tree"); } } @@ -877,25 +877,25 @@ tg_parseSubQuery(TgRecipe * r, TgNode * n, TeeInfo * teeInfo) snprintf(newquery, 1000, "select %s()", funcName); #ifdef DEBUG_RECIPE - elog(NOTICE, "calling parser with %s", newquery); + elog(WARNING, "calling parser with %s", newquery); #endif /* DEBUG_RECIPE */ qList = parser(newquery, typev, parameterCount); if (qList->len > 1) { - elog(NOTICE, + elog(WARNING, "tg_parseSubQuery: parser produced > 1 query tree"); } } break; case TG_RECIPE_GRAPH: - elog(NOTICE, "tg_parseSubQuery: can't parse recipe graph ingredients yet!"); + elog(WARNING, "tg_parseSubQuery: can't parse recipe graph ingredients yet!"); break; case TG_COMPILED: - elog(NOTICE, "tg_parseSubQuery: can't parse compiled ingredients yet!"); + elog(WARNING, "tg_parseSubQuery: can't parse compiled ingredients yet!"); break; default: - elog(NOTICE, "tg_parseSubQuery: unknown srcLang: %d", elem->srcLang); + elog(WARNING, "tg_parseSubQuery: unknown srcLang: %d", elem->srcLang); } /* parse each of the subrecipes that are input to this node */ @@ -937,7 +937,7 @@ tg_parseSubQuery(TgRecipe * r, TgNode * n, TeeInfo * teeInfo) * if we hit an eye, we need to stop and make what we have into a * subrecipe query block */ - elog(NOTICE, "tg_parseSubQuery: can't handle eye nodes yet"); + elog(WARNING, "tg_parseSubQuery: can't handle eye nodes yet"); } else if (n->nodeType == TG_TEE_NODE) { @@ -1031,7 +1031,7 @@ tg_parseSubQuery(TgRecipe * r, TgNode * n, TeeInfo * teeInfo) "result", InvalidOid, -1, 0, false)) - elog(NOTICE, "tg_parseSubQuery: unexpected result from TupleDescInitEntry"); + elog(WARNING, "tg_parseSubQuery: unexpected result from TupleDescInitEntry"); else { relid = heap_create_with_catalog( @@ -1042,9 +1042,9 @@ tg_parseSubQuery(TgRecipe * r, TgNode * n, TeeInfo * teeInfo) } } else if (n->nodeType == TG_RECIPE_NODE) - elog(NOTICE, "tg_parseSubQuery: can't handle embedded recipes yet!"); + elog(WARNING, "tg_parseSubQuery: can't handle embedded recipes yet!"); else - elog(NOTICE, "unknown nodeType: %d", n->nodeType); + elog(WARNING, "unknown nodeType: %d", n->nodeType); return qList; } @@ -1155,7 +1155,7 @@ appendTeeQuery(TeeInfo * teeInfo, QueryTreeList * q, char *teeNodeName) return; } } - elog(NOTICE, "appendTeeQuery: teeNodeName '%s' not found in teeInfo"); + elog(WARNING, "appendTeeQuery: teeNodeName '%s' not found in teeInfo"); } @@ -1301,7 +1301,7 @@ replaceTeeScans(Plan *plan, Query *parsetree, TeeInfo * teeInfo) tplan = teeInfo->val[i].tpi_plan; } if (tplan == NULL) - elog(NOTICE, "replaceTeeScans didn't find the corresponding tee plan"); + elog(WARNING, "replaceTeeScans didn't find the corresponding tee plan"); /* * replace the sequential scan node with that var number with diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c index e26d66229a9..d033fa95054 100644 --- a/src/backend/commands/analyze.c +++ b/src/backend/commands/analyze.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.27 2002/03/02 21:39:22 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.28 2002/03/06 06:09:28 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -153,7 +153,7 @@ analyze_rel(Oid relid, VacuumStmt *vacstmt) elevel = INFO; else elevel = DEBUG1; - + /* * Begin a transaction for analyzing this relation. * @@ -165,7 +165,7 @@ analyze_rel(Oid relid, VacuumStmt *vacstmt) /* * Check for user-requested abort. Note we want this to be inside a - * transaction, so xact.c doesn't issue useless NOTICE. + * transaction, so xact.c doesn't issue useless WARNING. */ CHECK_FOR_INTERRUPTS(); @@ -204,9 +204,9 @@ analyze_rel(Oid relid, VacuumStmt *vacstmt) RELNAME) || (is_dbadmin(MyDatabaseId) && !onerel->rd_rel->relisshared))) { - /* No need for a notice if we already complained during VACUUM */ + /* No need for a WARNING if we already complained during VACUUM */ if (!vacstmt->vacuum) - elog(NOTICE, "Skipping \"%s\" --- only table or database owner can ANALYZE it", + elog(WARNING, "Skipping \"%s\" --- only table or database owner can ANALYZE it", RelationGetRelationName(onerel)); heap_close(onerel, NoLock); CommitTransactionCommand(); diff --git a/src/backend/commands/async.c b/src/backend/commands/async.c index 6a0d80af2fa..cbfe37f027a 100644 --- a/src/backend/commands/async.c +++ b/src/backend/commands/async.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.82 2002/03/02 21:39:22 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.83 2002/03/06 06:09:29 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -221,7 +221,7 @@ Async_Listen(char *relname, int pid) if (alreadyListener) { heap_close(lRel, AccessExclusiveLock); - elog(NOTICE, "Async_Listen: We are already listening on %s", relname); + elog(WARNING, "Async_Listen: We are already listening on %s", relname); return; } diff --git a/src/backend/commands/command.c b/src/backend/commands/command.c index e49c8ca3212..4a2edd61bc0 100644 --- a/src/backend/commands/command.c +++ b/src/backend/commands/command.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.158 2002/03/05 05:33:08 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.159 2002/03/06 06:09:29 momjian Exp $ * * NOTES * The PerformAddAttribute() code, like most of the relation @@ -126,7 +126,7 @@ PerformPortalFetch(char *name, */ if (name == NULL) { - elog(NOTICE, "PerformPortalFetch: missing portal name"); + elog(WARNING, "PerformPortalFetch: missing portal name"); return; } @@ -136,7 +136,7 @@ PerformPortalFetch(char *name, portal = GetPortalByName(name); if (!PortalIsValid(portal)) { - elog(NOTICE, "PerformPortalFetch: portal \"%s\" not found", + elog(WARNING, "PerformPortalFetch: portal \"%s\" not found", name); return; } @@ -253,7 +253,7 @@ PerformPortalClose(char *name, CommandDest dest) */ if (name == NULL) { - elog(NOTICE, "PerformPortalClose: missing portal name"); + elog(WARNING, "PerformPortalClose: missing portal name"); return; } @@ -263,7 +263,7 @@ PerformPortalClose(char *name, CommandDest dest) portal = GetPortalByName(name); if (!PortalIsValid(portal)) { - elog(NOTICE, "PerformPortalClose: portal \"%s\" not found", + elog(WARNING, "PerformPortalClose: portal \"%s\" not found", name); return; } @@ -749,7 +749,7 @@ AlterTableAlterColumnFlags(const char *relationName, myrelid = RelationGetRelid(rel); heap_close(rel, NoLock); /* close rel, but keep lock! */ - + /* * Check the supplied parameters before anything else */ @@ -759,7 +759,7 @@ AlterTableAlterColumnFlags(const char *relationName, { Assert(IsA(flagValue, Integer)); newtarget = intVal(flagValue); - + /* * Limit target to sane range (should we raise an error instead?) */ @@ -773,7 +773,7 @@ AlterTableAlterColumnFlags(const char *relationName, */ { Assert(IsA(flagValue, Value)); - + storagemode = strVal(flagValue); if (strcasecmp(storagemode, "plain") == 0) newstorage = 'p'; @@ -1556,7 +1556,7 @@ AlterTableDropConstraint(const char *relationName, constrName); /* Otherwise if more than one constraint deleted, notify */ else if (deleted > 1) - elog(INFO, "Multiple constraints dropped"); + elog(NOTICE, "Multiple constraints dropped"); } diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index ecc7232dc05..541f3d0a484 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.149 2002/02/27 01:34:41 ishii Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.150 2002/03/06 06:09:30 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1019,7 +1019,7 @@ CopyReadNewline(FILE *fp, int *newline) { if (!*newline) { - elog(NOTICE, "CopyReadNewline: extra fields ignored"); + elog(WARNING, "CopyReadNewline: extra fields ignored"); while (!CopyGetEof(fp) && (CopyGetChar(fp) != '\n')); } *newline = 0; diff --git a/src/backend/commands/creatinh.c b/src/backend/commands/creatinh.c index 468434ea2a5..27535429c39 100644 --- a/src/backend/commands/creatinh.c +++ b/src/backend/commands/creatinh.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.82 2002/03/02 21:39:22 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.83 2002/03/06 06:09:31 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -425,7 +425,7 @@ MergeAttributes(List *schema, List *supers, bool istemp, * Yes, try to merge the two column definitions. They must * have the same type and typmod. */ - elog(INFO, "CREATE TABLE: merging multiple inherited definitions of attribute \"%s\"", + elog(NOTICE, "CREATE TABLE: merging multiple inherited definitions of attribute \"%s\"", attributeName); def = (ColumnDef *) nth(exist_attno - 1, inhSchema); if (strcmp(def->typename->name, attributeType) != 0 || @@ -564,7 +564,7 @@ MergeAttributes(List *schema, List *supers, bool istemp, * Yes, try to merge the two column definitions. They must * have the same type and typmod. */ - elog(INFO, "CREATE TABLE: merging attribute \"%s\" with inherited definition", + elog(NOTICE, "CREATE TABLE: merging attribute \"%s\" with inherited definition", attributeName); def = (ColumnDef *) nth(exist_attno - 1, inhSchema); if (strcmp(def->typename->name, attributeType) != 0 || diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 3de94de9c6e..9d40d6a11e3 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.84 2002/03/01 22:45:08 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.85 2002/03/06 06:09:32 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -689,7 +689,7 @@ remove_dbdirs(const char *nominal_loc, const char *alt_loc) /* remove symlink */ if (unlink(nominal_loc) != 0) { - elog(NOTICE, "could not remove '%s': %m", nominal_loc); + elog(WARNING, "could not remove '%s': %m", nominal_loc); success = false; } } @@ -698,7 +698,7 @@ remove_dbdirs(const char *nominal_loc, const char *alt_loc) if (system(buf) != 0) { - elog(NOTICE, "database directory '%s' could not be removed", + elog(WARNING, "database directory '%s' could not be removed", target_dir); success = false; } diff --git a/src/backend/commands/define.c b/src/backend/commands/define.c index 810c9bf1b43..841fc73c309 100644 --- a/src/backend/commands/define.c +++ b/src/backend/commands/define.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.66 2002/03/02 21:39:23 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.67 2002/03/06 06:09:32 momjian Exp $ * * DESCRIPTION * The "DefineFoo" routines take the parse tree and pick out the @@ -154,7 +154,7 @@ compute_full_attributes(List *parameters, else if (strcasecmp(param->defname, "outin_ratio") == 0) *outin_ratio_p = (int) defGetNumeric(param); else - elog(NOTICE, "Unrecognized function attribute '%s' ignored", + elog(WARNING, "Unrecognized function attribute '%s' ignored", param->defname); } } @@ -348,12 +348,12 @@ DefineOperator(char *oprName, else if (strcasecmp(defel->defname, "precedence") == 0) { /* NOT IMPLEMENTED (never worked in v4.2) */ - elog(INFO, "CREATE OPERATOR: precedence not implemented"); + elog(NOTICE, "CREATE OPERATOR: precedence not implemented"); } else if (strcasecmp(defel->defname, "associativity") == 0) { /* NOT IMPLEMENTED (never worked in v4.2) */ - elog(INFO, "CREATE OPERATOR: associativity not implemented"); + elog(NOTICE, "CREATE OPERATOR: associativity not implemented"); } else if (strcasecmp(defel->defname, "commutator") == 0) commutatorName = defGetString(defel); @@ -379,7 +379,7 @@ DefineOperator(char *oprName, sortName2 = defGetString(defel); else { - elog(NOTICE, "DefineOperator: attribute \"%s\" not recognized", + elog(WARNING, "DefineOperator: attribute \"%s\" not recognized", defel->defname); } } @@ -450,7 +450,7 @@ DefineAggregate(char *aggName, List *parameters) else if (strcasecmp(defel->defname, "initcond1") == 0) initval = defGetString(defel); else - elog(NOTICE, "DefineAggregate: attribute \"%s\" not recognized", + elog(WARNING, "DefineAggregate: attribute \"%s\" not recognized", defel->defname); } @@ -578,7 +578,7 @@ DefineType(char *typeName, List *parameters) } else { - elog(NOTICE, "DefineType: attribute \"%s\" not recognized", + elog(WARNING, "DefineType: attribute \"%s\" not recognized", defel->defname); } } diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index faea169a636..319a9c83d82 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994-5, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.69 2002/03/02 21:39:23 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.70 2002/03/06 06:09:33 momjian Exp $ * */ @@ -51,7 +51,7 @@ ExplainQuery(Query *query, bool verbose, bool analyze, CommandDest dest) /* rewriter and planner may not work in aborted state? */ if (IsAbortedTransactionBlockState()) { - elog(NOTICE, "(transaction aborted): %s", + elog(WARNING, "(transaction aborted): %s", "queries ignored until END"); return; } @@ -59,7 +59,7 @@ ExplainQuery(Query *query, bool verbose, bool analyze, CommandDest dest) /* rewriter will not cope with utility statements */ if (query->commandType == CMD_UTILITY) { - elog(INFO, "Utility statements have no plan structure"); + elog(NOTICE, "Utility statements have no plan structure"); return; } @@ -69,7 +69,7 @@ ExplainQuery(Query *query, bool verbose, bool analyze, CommandDest dest) /* In the case of an INSTEAD NOTHING, tell at least that */ if (rewritten == NIL) { - elog(INFO, "Query rewrites to nothing"); + elog(NOTICE, "Query rewrites to nothing"); return; } diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index 4aa14844358..b04ec8a9b41 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.62 2002/01/03 23:19:36 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.63 2002/03/06 06:09:33 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -556,7 +556,7 @@ ReindexIndex(const char *name, bool force /* currently unused */ ) if (IsIgnoringSystemIndexes()) overwrite = true; if (!reindex_index(tuple->t_data->t_oid, force, overwrite)) - elog(NOTICE, "index \"%s\" wasn't reindexed", name); + elog(WARNING, "index \"%s\" wasn't reindexed", name); ReleaseSysCache(tuple); } @@ -593,7 +593,7 @@ ReindexTable(const char *name, bool force) name, ((Form_pg_class) GETSTRUCT(tuple))->relkind); if (!reindex_relation(tuple->t_data->t_oid, force)) - elog(NOTICE, "table \"%s\" wasn't reindexed", name); + elog(WARNING, "table \"%s\" wasn't reindexed", name); ReleaseSysCache(tuple); } @@ -688,7 +688,7 @@ ReindexDatabase(const char *dbname, bool force, bool all) { StartTransactionCommand(); if (reindex_relation(relids[i], force)) - elog(NOTICE, "relation %u was reindexed", relids[i]); + elog(WARNING, "relation %u was reindexed", relids[i]); CommitTransactionCommand(); } StartTransactionCommand(); diff --git a/src/backend/commands/remove.c b/src/backend/commands/remove.c index b8a1c92e145..a0456adeb93 100644 --- a/src/backend/commands/remove.c +++ b/src/backend/commands/remove.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.65 2001/11/05 17:46:24 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.66 2002/03/06 06:09:35 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -336,8 +336,8 @@ RemoveFunction(char *functionName, /* function name to be removed */ if (((Form_pg_proc) GETSTRUCT(tup))->prolang == INTERNALlanguageId) { - /* "Helpful" notice when removing a builtin function ... */ - elog(NOTICE, "Removing built-in function \"%s\"", functionName); + /* "Helpful" WARNING when removing a builtin function ... */ + elog(WARNING, "Removing built-in function \"%s\"", functionName); } /* Delete any comments associated with this function */ diff --git a/src/backend/commands/sequence.c b/src/backend/commands/sequence.c index 1552252626f..6b2161a2b17 100644 --- a/src/backend/commands/sequence.c +++ b/src/backend/commands/sequence.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/sequence.c,v 1.69 2002/03/02 21:39:23 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/sequence.c,v 1.70 2002/03/06 06:09:35 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -699,7 +699,7 @@ init_sequence(char *caller, char *name) elm->rel = seqrel; if (RelationGetRelid(seqrel) != elm->relid) { - elog(NOTICE, "%s.%s: sequence was re-created", + elog(WARNING, "%s.%s: sequence was re-created", name, caller); elm->relid = RelationGetRelid(seqrel); elm->cached = elm->last = elm->increment = 0; diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c index d424c5eb05d..61a4eacbacc 100644 --- a/src/backend/commands/trigger.c +++ b/src/backend/commands/trigger.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.103 2002/03/02 21:39:23 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.104 2002/03/06 06:09:36 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -368,7 +368,7 @@ DropTrigger(DropTrigStmt *stmt) elog(ERROR, "DropTrigger: there is no trigger %s on relation %s", stmt->trigname, stmt->relname); if (tgfound > 1) - elog(INFO, "DropTrigger: found (and deleted) %d triggers %s on relation %s", + elog(NOTICE, "DropTrigger: found (and deleted) %d triggers %s on relation %s", tgfound, stmt->trigname, stmt->relname); /* @@ -489,7 +489,7 @@ RelationRemoveTriggers(Relation rel) stmt.relname = pstrdup(RelationGetRelationName(refrel)); heap_close(refrel, NoLock); - elog(INFO, "DROP TABLE implicitly drops referential integrity trigger from table \"%s\"", stmt.relname); + elog(NOTICE, "DROP TABLE implicitly drops referential integrity trigger from table \"%s\"", stmt.relname); DropTrigger(&stmt); @@ -1419,8 +1419,8 @@ deferredTriggerInvokeEvents(bool immediate_only) * deferred-to-end-of-transaction triggers, it could get annoying * to rescan all the deferred triggers at each command end. * To speed this up, we could remember the actual end of the queue at - * EndQuery and examine only events that are newer. On state changes - * we simply reset the saved position to the beginning of the queue + * EndQuery and examine only events that are newer. On state changes + * we simply reset the saved position to the beginning of the queue * and process all events once with the new states. */ diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index 45351b7ad0e..3de55ad71c0 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.92 2002/03/02 21:39:23 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.93 2002/03/06 06:09:37 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -547,7 +547,7 @@ AlterUser(AlterUserStmt *stmt) /* changes to the flat password file cannot be rolled back */ if (IsTransactionBlock() && password) - elog(INFO, "ALTER USER: password changes cannot be rolled back"); + elog(NOTICE, "ALTER USER: password changes cannot be rolled back"); /* * Scan the pg_shadow relation to be certain the user exists. Note we @@ -785,7 +785,7 @@ DropUser(DropUserStmt *stmt) elog(ERROR, "DROP USER: permission denied"); if (IsTransactionBlock()) - elog(INFO, "DROP USER cannot be rolled back completely"); + elog(NOTICE, "DROP USER cannot be rolled back completely"); /* * Scan the pg_shadow relation to find the usesysid of the user to be @@ -1212,12 +1212,11 @@ AlterGroup(AlterGroupStmt *stmt, const char *tag) if (!member(v, newlist)) newlist = lappend(newlist, v); else - /* * we silently assume here that this error will only come * up in a ALTER GROUP statement */ - elog(NOTICE, "%s: user \"%s\" is already in group \"%s\"", + elog(WARNING, "%s: user \"%s\" is already in group \"%s\"", tag, strVal(lfirst(item)), stmt->name); } @@ -1269,7 +1268,7 @@ AlterGroup(AlterGroupStmt *stmt, const char *tag) if (null) { if (!is_dropuser) - elog(NOTICE, "ALTER GROUP: group \"%s\" does not have any members", stmt->name); + elog(WARNING, "ALTER GROUP: group \"%s\" does not have any members", stmt->name); } else { @@ -1322,7 +1321,7 @@ AlterGroup(AlterGroupStmt *stmt, const char *tag) if (member(v, newlist)) newlist = LispRemove(v, newlist); else if (!is_dropuser) - elog(NOTICE, "ALTER GROUP: user \"%s\" is not in group \"%s\"", strVal(lfirst(item)), stmt->name); + elog(WARNING, "ALTER GROUP: user \"%s\" is not in group \"%s\"", strVal(lfirst(item)), stmt->name); } newarray = palloc(ARR_OVERHEAD(1) + length(newlist) * sizeof(int32)); diff --git a/src/backend/commands/vacuum.c b/src/backend/commands/vacuum.c index afcdac7fb56..6b94db10777 100644 --- a/src/backend/commands/vacuum.c +++ b/src/backend/commands/vacuum.c @@ -13,7 +13,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.216 2002/03/03 17:47:54 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.217 2002/03/06 06:09:38 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -195,7 +195,7 @@ vacuum(VacuumStmt *vacstmt) elevel = INFO; else elevel = DEBUG1; - + /* * Create special memory context for cross-transaction storage. * @@ -386,7 +386,7 @@ getrels(Name VacRelP, const char *stmttype) if (rkind != RELKIND_RELATION) { - elog(NOTICE, "%s: can not process indexes, views or special system tables", + elog(WARNING, "%s: can not process indexes, views or special system tables", stmttype); continue; } @@ -410,7 +410,7 @@ getrels(Name VacRelP, const char *stmttype) heap_close(rel, AccessShareLock); if (vrl == NULL) - elog(NOTICE, "%s: table not found", stmttype); + elog(WARNING, "%s: table not found", stmttype); return vrl; } @@ -454,7 +454,7 @@ vacuum_set_xid_limits(VacuumStmt *vacstmt, bool sharedRel, */ if (TransactionIdFollows(limit, *oldestXmin)) { - elog(NOTICE, "oldest Xmin is far in the past --- close open transactions soon to avoid wraparound problems"); + elog(WARNING, "oldest Xmin is far in the past --- close open transactions soon to avoid wraparound problems"); limit = *oldestXmin; } @@ -645,7 +645,7 @@ vac_truncate_clog(TransactionId vacuumXID, TransactionId frozenXID) /* Give warning about impending wraparound problems */ age = (int32) (GetCurrentTransactionId() - frozenXID); if (age > (int32) ((MaxTransactionId >> 3) * 3)) - elog(NOTICE, "Some databases have not been vacuumed in %d transactions." + elog(WARNING, "Some databases have not been vacuumed in %d transactions." "\n\tBetter vacuum them within %d transactions," "\n\tor you may have a wraparound failure.", age, (int32) (MaxTransactionId >> 1) - age); @@ -684,7 +684,7 @@ vacuum_rel(Oid relid, VacuumStmt *vacstmt) /* * Check for user-requested abort. Note we want this to be inside a - * transaction, so xact.c doesn't issue useless NOTICE. + * transaction, so xact.c doesn't issue useless WARNING. */ CHECK_FOR_INTERRUPTS(); @@ -716,7 +716,7 @@ vacuum_rel(Oid relid, VacuumStmt *vacstmt) * owner, or the database owner (but in the latter case, only if it's * not a shared relation). pg_ownercheck includes the superuser case. * - * Note we choose to treat permissions failure as a NOTICE and keep + * Note we choose to treat permissions failure as a WARNING and keep * trying to vacuum the rest of the DB --- is this appropriate? */ onerel = heap_open(relid, lmode); @@ -725,7 +725,7 @@ vacuum_rel(Oid relid, VacuumStmt *vacstmt) RELNAME) || (is_dbadmin(MyDatabaseId) && !onerel->rd_rel->relisshared))) { - elog(NOTICE, "Skipping \"%s\" --- only table or database owner can VACUUM it", + elog(WARNING, "Skipping \"%s\" --- only table or database owner can VACUUM it", RelationGetRelationName(onerel)); heap_close(onerel, lmode); CommitTransactionCommand(); @@ -996,7 +996,7 @@ scan_heap(VRelStats *vacrelstats, Relation onerel, if (PageIsNew(page)) { - elog(NOTICE, "Rel %s: Uninitialized page %u - fixing", + elog(WARNING, "Rel %s: Uninitialized page %u - fixing", relname, blkno); PageInit(page, BufferGetPageSize(buf), 0); vacpage->free = ((PageHeader) page)->pd_upper - ((PageHeader) page)->pd_lower; @@ -1110,7 +1110,7 @@ scan_heap(VRelStats *vacrelstats, Relation onerel, * This should not happen, since we hold exclusive * lock on the relation; shouldn't we raise an error? */ - elog(NOTICE, "Rel %s: TID %u/%u: InsertTransactionInProgress %u - can't shrink relation", + elog(WARNING, "Rel %s: TID %u/%u: InsertTransactionInProgress %u - can't shrink relation", relname, blkno, offnum, tuple.t_data->t_xmin); do_shrinking = false; break; @@ -1120,7 +1120,7 @@ scan_heap(VRelStats *vacrelstats, Relation onerel, * This should not happen, since we hold exclusive * lock on the relation; shouldn't we raise an error? */ - elog(NOTICE, "Rel %s: TID %u/%u: DeleteTransactionInProgress %u - can't shrink relation", + elog(WARNING, "Rel %s: TID %u/%u: DeleteTransactionInProgress %u - can't shrink relation", relname, blkno, offnum, tuple.t_data->t_xmax); do_shrinking = false; break; @@ -1138,7 +1138,7 @@ scan_heap(VRelStats *vacrelstats, Relation onerel, */ if (!OidIsValid(tuple.t_data->t_oid) && onerel->rd_rel->relhasoids) - elog(NOTICE, "Rel %s: TID %u/%u: OID IS INVALID. TUPGONE %d.", + elog(WARNING, "Rel %s: TID %u/%u: OID IS INVALID. TUPGONE %d.", relname, blkno, offnum, (int) tupgone); if (tupgone) @@ -1601,7 +1601,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel, ReleaseBuffer(Cbuf); pfree(vtmove); vtmove = NULL; - elog(NOTICE, "Child itemid in update-chain marked as unused - can't continue repair_frag"); + elog(WARNING, "Child itemid in update-chain marked as unused - can't continue repair_frag"); break; } tp.t_datamcxt = NULL; @@ -1720,7 +1720,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel, (vtmove[i].vacpage->offsets_used)--; } num_vtmove = 0; - elog(NOTICE, "Too old parent tuple found - can't continue repair_frag"); + elog(WARNING, "Too old parent tuple found - can't continue repair_frag"); break; } #ifdef NOT_USED /* I'm not sure that this will wotk @@ -2155,7 +2155,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel, * status bits. This is not really necessary, but will save time for * future transactions examining these tuples. * - * XXX Notice that this code fails to clear HEAP_MOVED_OFF tuples from + * XXX WARNING that this code fails to clear HEAP_MOVED_OFF tuples from * pages that were move source pages but not move dest pages. One * also wonders whether it wouldn't be better to skip this step and * let the tuple status updates happen someplace that's not holding an @@ -2467,7 +2467,7 @@ scan_index(Relation indrel, double num_tuples) { if (stats->num_index_tuples > num_tuples || !vac_is_partial_index(indrel)) - elog(NOTICE, "Index %s: NUMBER OF INDEX' TUPLES (%.0f) IS NOT THE SAME AS HEAP' (%.0f).\ + elog(WARNING, "Index %s: NUMBER OF INDEX' TUPLES (%.0f) IS NOT THE SAME AS HEAP' (%.0f).\ \n\tRecreate the index.", RelationGetRelationName(indrel), stats->num_index_tuples, num_tuples); @@ -2521,7 +2521,7 @@ vacuum_index(VacPageList vacpagelist, Relation indrel, { if (stats->num_index_tuples > num_tuples + keep_tuples || !vac_is_partial_index(indrel)) - elog(NOTICE, "Index %s: NUMBER OF INDEX' TUPLES (%.0f) IS NOT THE SAME AS HEAP' (%.0f).\ + elog(WARNING, "Index %s: NUMBER OF INDEX' TUPLES (%.0f) IS NOT THE SAME AS HEAP' (%.0f).\ \n\tRecreate the index.", RelationGetRelationName(indrel), stats->num_index_tuples, num_tuples); diff --git a/src/backend/commands/vacuumlazy.c b/src/backend/commands/vacuumlazy.c index 39a9679922f..516fe35f2a9 100644 --- a/src/backend/commands/vacuumlazy.c +++ b/src/backend/commands/vacuumlazy.c @@ -31,7 +31,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/vacuumlazy.c,v 1.12 2002/03/02 21:39:23 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/vacuumlazy.c,v 1.13 2002/03/06 06:09:38 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -142,7 +142,7 @@ lazy_vacuum_rel(Relation onerel, VacuumStmt *vacstmt) elevel = INFO; else elevel = DEBUG1; - + vacuum_set_xid_limits(vacstmt, onerel->rd_rel->relisshared, &OldestXmin, &FreezeLimit); @@ -263,7 +263,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats, LockBuffer(buf, BUFFER_LOCK_EXCLUSIVE); if (PageIsNew(page)) { - elog(NOTICE, "Rel %s: Uninitialized page %u - fixing", + elog(WARNING, "Rel %s: Uninitialized page %u - fixing", relname, blkno); PageInit(page, BufferGetPageSize(buf), 0); lazy_record_free_space(vacrelstats, blkno, @@ -367,7 +367,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats, */ if (!OidIsValid(tuple.t_data->t_oid) && onerel->rd_rel->relhasoids) - elog(NOTICE, "Rel %s: TID %u/%u: OID IS INVALID. TUPGONE %d.", + elog(WARNING, "Rel %s: TID %u/%u: OID IS INVALID. TUPGONE %d.", relname, blkno, offnum, (int) tupgone); if (tupgone) diff --git a/src/backend/commands/variable.c b/src/backend/commands/variable.c index 594b8643067..466bfec202f 100644 --- a/src/backend/commands/variable.c +++ b/src/backend/commands/variable.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.59 2002/03/02 21:39:23 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.60 2002/03/06 06:09:39 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -250,7 +250,7 @@ parse_datestyle_internal(char *value) } if (dcnt > 1 || ecnt > 1) - elog(NOTICE, "Conflicting settings for date"); + elog(WARNING, "Conflicting settings for date"); return TRUE; } diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 40f03169ba0..35a5c2d7138 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -27,7 +27,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.151 2002/03/02 21:39:25 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.152 2002/03/06 06:09:42 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1359,7 +1359,7 @@ ExecReplace(TupleTableSlot *slot, */ if (IsBootstrapProcessingMode()) { - elog(NOTICE, "ExecReplace: replace can't run without transactions"); + elog(WARNING, "ExecReplace: replace can't run without transactions"); return; } diff --git a/src/backend/executor/nodeMergejoin.c b/src/backend/executor/nodeMergejoin.c index 41f0e99693f..d97d91f3711 100644 --- a/src/backend/executor/nodeMergejoin.c +++ b/src/backend/executor/nodeMergejoin.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/nodeMergejoin.c,v 1.48 2002/03/01 04:09:22 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/nodeMergejoin.c,v 1.49 2002/03/06 06:09:43 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1376,7 +1376,7 @@ ExecMergeJoin(MergeJoin *node) * just end the join prematurely. */ default: - elog(NOTICE, "ExecMergeJoin: invalid join state %d, aborting", + elog(WARNING, "ExecMergeJoin: invalid join state %d, aborting", mergestate->mj_JoinState); return NULL; } diff --git a/src/backend/libpq/be-fsstubs.c b/src/backend/libpq/be-fsstubs.c index b0a759bc008..bb98ea8d16b 100644 --- a/src/backend/libpq/be-fsstubs.c +++ b/src/backend/libpq/be-fsstubs.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.59 2001/06/13 21:44:41 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.60 2002/03/06 06:09:46 momjian Exp $ * * NOTES * This should be moved to a more appropriate place. It is here @@ -82,7 +82,7 @@ lo_open(PG_FUNCTION_ARGS) MemoryContext currentContext; #if FSDB - elog(NOTICE, "lo_open(%u,%d)", lobjId, mode); + elog(DEBUG3, "lo_open(%u,%d)", lobjId, mode); #endif if (fscxt == NULL) @@ -100,7 +100,7 @@ lo_open(PG_FUNCTION_ARGS) { /* lookup failed */ MemoryContextSwitchTo(currentContext); #if FSDB - elog(NOTICE, "cannot open large object %u", lobjId); + elog(DEBUG3, "cannot open large object %u", lobjId); #endif PG_RETURN_INT32(-1); } @@ -124,7 +124,7 @@ lo_close(PG_FUNCTION_ARGS) PG_RETURN_INT32(-1); } #if FSDB - elog(NOTICE, "lo_close(%d)", fd); + elog(DEBUG3, "lo_close(%d)", fd); #endif Assert(fscxt != NULL); diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index df55fad678c..bba8829cd50 100644 --- a/src/backend/libpq/pqcomm.c +++ b/src/backend/libpq/pqcomm.c @@ -29,7 +29,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pqcomm.c,v 1.128 2002/03/04 01:46:03 tgl Exp $ + * $Id: pqcomm.c,v 1.129 2002/03/06 06:09:47 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -716,7 +716,7 @@ pq_eof(void) * If msgtype is '\0', then the buffer already includes the type code. * * All normal messages are suppressed while COPY OUT is in progress. - * (In practice only NOTICE messages might get emitted then; dropping + * (In practice only a few messages might get emitted then; dropping * them is annoying, but at least they will still appear in the * postmaster log.) * diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index 46cf4497923..661190dbaa8 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -20,7 +20,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.112 2002/03/01 22:45:12 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.113 2002/03/06 06:09:49 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -2171,7 +2171,7 @@ equal(void *a, void *b) break; default: - elog(NOTICE, "equal: don't know whether nodes of type %d are equal", + elog(WARNING, "equal: don't know whether nodes of type %d are equal", nodeTag(a)); break; } diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index fab75d50d76..d3b737ed213 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.147 2001/10/25 14:08:11 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.148 2002/03/06 06:09:49 momjian Exp $ * * NOTES * Every (plan) node in POSTGRES has an associated "out" routine which @@ -1291,7 +1291,7 @@ _outValue(StringInfo str, Value *value) appendStringInfo(str, " %s ", value->val.str); break; default: - elog(NOTICE, "_outValue: don't know how to print type %d ", + elog(WARNING, "_outValue: don't know how to print type %d ", value->type); break; } @@ -1693,7 +1693,7 @@ _outNode(StringInfo str, void *obj) break; default: - elog(NOTICE, "_outNode: don't know how to print type %d ", + elog(WARNING, "_outNode: don't know how to print type %d ", nodeTag(obj)); break; } diff --git a/src/backend/optimizer/path/clausesel.c b/src/backend/optimizer/path/clausesel.c index d41df4b2b5f..85584bfdcfc 100644 --- a/src/backend/optimizer/path/clausesel.c +++ b/src/backend/optimizer/path/clausesel.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.48 2001/11/05 17:46:25 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.49 2002/03/06 06:09:50 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -519,7 +519,7 @@ clause_selectivity(Query *root, } #ifdef SELECTIVITY_DEBUG - elog(NOTICE, "clause_selectivity: s1 %f", s1); + elog(DEBUG3, "clause_selectivity: s1 %f", s1); #endif /* SELECTIVITY_DEBUG */ return s1; diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index 4871e78a72f..d882957a340 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.216 2002/03/02 21:39:27 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.217 2002/03/06 06:09:51 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -425,7 +425,7 @@ transformInsertStmt(ParseState *pstate, InsertStmt *stmt, /* * Note: we are not expecting that extras_before and extras_after * are going to be used by the transformation of the SELECT statement. - */ + */ selectQuery = transformStmt(sub_pstate, stmt->selectStmt, extras_before, extras_after); @@ -849,7 +849,7 @@ transformColumnDefinition(ParseState *pstate, CreateStmtContext *cxt, sequence->istemp = cxt->istemp; sequence->options = NIL; - elog(INFO, "%s will create implicit sequence '%s' for SERIAL column '%s.%s'", + elog(NOTICE, "%s will create implicit sequence '%s' for SERIAL column '%s.%s'", cxt->stmtType, sequence->seqname, cxt->relname, column->colname); cxt->blist = lappend(cxt->blist, sequence); @@ -1125,7 +1125,7 @@ transformIndexConstraints(ParseState *pstate, CreateStmtContext *cxt) * later. That would likely be cleaner, but * too much work to contemplate right now. * Instead, raise an error if the inherited - * column won't be NOT NULL. (Would a NOTICE + * column won't be NOT NULL. (Would a WARNING * be more reasonable?) */ if (constraint->contype == CONSTR_PRIMARY && @@ -1245,7 +1245,7 @@ transformIndexConstraints(ParseState *pstate, CreateStmtContext *cxt) /* * Finally, select unique names for all not-previously-named indices, - * and display notice messages. + * and display WARNING messages. * * XXX in ALTER TABLE case, we fail to consider name collisions against * pre-existing indexes. @@ -1264,7 +1264,7 @@ transformIndexConstraints(ParseState *pstate, CreateStmtContext *cxt) elog(ERROR, "%s: failed to make implicit index name", cxt->stmtType); - elog(INFO, "%s / %s%s will create implicit index '%s' for table '%s'", + elog(NOTICE, "%s / %s%s will create implicit index '%s' for table '%s'", cxt->stmtType, (strcmp(cxt->stmtType, "ALTER TABLE") == 0) ? "ADD " : "", (index->primary ? "PRIMARY KEY" : "UNIQUE"), @@ -1288,7 +1288,7 @@ transformFKConstraints(ParseState *pstate, CreateStmtContext *cxt) if (cxt->fkconstraints == NIL) return; - elog(INFO, "%s will create implicit trigger(s) for FOREIGN KEY check(s)", + elog(NOTICE, "%s will create implicit trigger(s) for FOREIGN KEY check(s)", cxt->stmtType); foreach(fkclist, cxt->fkconstraints) @@ -2710,7 +2710,7 @@ transformTypeRef(ParseState *pstate, TypeName *tn) elog(ERROR, "unsupported expression in %%TYPE"); v = (Var *) n; tyn = typeidTypeName(v->vartype); - elog(INFO, "%s.%s%%TYPE converted to %s", tn->name, tn->attrname, tyn); + elog(NOTICE, "%s.%s%%TYPE converted to %s", tn->name, tn->attrname, tyn); tn->name = tyn; tn->typmod = v->vartypmod; tn->attrname = NULL; diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index dfc8898653c..a8aba404e76 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.284 2002/03/05 05:33:14 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.285 2002/03/06 06:09:53 momjian Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -1349,7 +1349,7 @@ columnDef: ColId Typename ColQualList opt_collate n->constraints = $3; if ($4 != NULL) - elog(INFO,"CREATE TABLE / COLLATE %s not yet implemented" + elog(NOTICE,"CREATE TABLE / COLLATE %s not yet implemented" "; clause ignored", $4); $$ = (Node *)n; @@ -2347,7 +2347,7 @@ direction: FORWARD { $$ = FORWARD; } | RELATIVE { $$ = RELATIVE; } | ABSOLUTE { - elog(INFO,"FETCH / ABSOLUTE not supported, using RELATIVE"); + elog(NOTICE,"FETCH / ABSOLUTE not supported, using RELATIVE"); $$ = RELATIVE; } ; diff --git a/src/backend/parser/parse_node.c b/src/backend/parser/parse_node.c index e2a79c47374..a43dcb13af2 100644 --- a/src/backend/parser/parse_node.c +++ b/src/backend/parser/parse_node.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.57 2001/10/28 06:25:47 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.58 2002/03/06 06:09:54 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -483,7 +483,7 @@ make_const(Value *value) break; default: - elog(NOTICE, "make_const: unknown type %d", nodeTag(value)); + elog(WARNING, "make_const: unknown type %d", nodeTag(value)); /* FALLTHROUGH */ case T_Null: diff --git a/src/backend/parser/parse_relation.c b/src/backend/parser/parse_relation.c index 4846bafde8c..9440914a776 100644 --- a/src/backend/parser/parse_relation.c +++ b/src/backend/parser/parse_relation.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.61 2002/03/02 21:39:28 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.62 2002/03/06 06:09:55 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1041,7 +1041,7 @@ warnAutoRange(ParseState *pstate, char *refname) } } if (foundInFromCl) - elog(INFO, "Adding missing FROM-clause entry%s for table \"%s\"", + elog(NOTICE, "Adding missing FROM-clause entry%s for table \"%s\"", pstate->parentParseState != NULL ? " in subquery" : "", refname); } diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l index b071032972a..e8b43ec0d76 100644 --- a/src/backend/parser/scan.l +++ b/src/backend/parser/scan.l @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.90 2001/09/07 23:17:14 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.91 2002/03/06 06:09:56 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -362,11 +362,11 @@ other . #ifdef MULTIBYTE int len; len = pg_mbcliplen(literalbuf,strlen(literalbuf),NAMEDATALEN-1); - elog(NOTICE, "identifier \"%s\" will be truncated to \"%.*s\"", + elog(WARNING, "identifier \"%s\" will be truncated to \"%.*s\"", literalbuf, len, literalbuf); literalbuf[len] = '\0'; #else - elog(NOTICE, "identifier \"%s\" will be truncated to \"%.*s\"", + elog(WARNING, "identifier \"%s\" will be truncated to \"%.*s\"", literalbuf, NAMEDATALEN-1, literalbuf); literalbuf[NAMEDATALEN-1] = '\0'; #endif @@ -517,11 +517,11 @@ other . #ifdef MULTIBYTE int len; len = pg_mbcliplen(yytext,i,NAMEDATALEN-1); - elog(NOTICE, "identifier \"%s\" will be truncated to \"%.*s\"", + elog(WARNING, "identifier \"%s\" will be truncated to \"%.*s\"", yytext, len, yytext); yytext[len] = '\0'; #else - elog(NOTICE, "identifier \"%s\" will be truncated to \"%.*s\"", + elog(WARNING, "identifier \"%s\" will be truncated to \"%.*s\"", yytext, NAMEDATALEN-1, yytext); yytext[NAMEDATALEN-1] = '\0'; #endif diff --git a/src/backend/port/beos/support.c b/src/backend/port/beos/support.c index 996615e6fa8..fbc431021db 100644 --- a/src/backend/port/beos/support.c +++ b/src/backend/port/beos/support.c @@ -42,7 +42,7 @@ beos_dl_open(char *filename) if ((beos_dl_port_in <= 0) || (beos_dl_port_out <= 0)) { - elog(NOTICE, "Error loading BeOS support server : can't create communication ports"); + elog(WARNING, "Error loading BeOS support server : can't create communication ports"); return B_ERROR; } else @@ -68,7 +68,7 @@ beos_dl_open(char *filename) /* Checking integrity */ if (im < 0) { - elog(NOTICE, "Can't load this add-on "); + elog(WARNING, "Can't load this add-on "); return B_ERROR; } else @@ -92,7 +92,7 @@ beos_dl_open(char *filename) /* Remap */ resu = clone_area(datas, &add, B_EXACT_ADDRESS, B_READ_AREA | B_WRITE_AREA, area); if (resu < 0) - elog(NOTICE, "Can't load this add-on : map text error"); + elog(WARNING, "Can't load this add-on : map text error"); } /* read text segment id and address */ @@ -108,7 +108,7 @@ beos_dl_open(char *filename) /* Remap */ resu = clone_area(datas, &add, B_EXACT_ADDRESS, B_READ_AREA | B_WRITE_AREA, area); if (resu < 0) - elog(NOTICE, "Can't load this add-on : map data error"); + elog(WARNING, "Can't load this add-on : map data error"); } return im; @@ -126,7 +126,7 @@ beos_dl_sym(image_id im, char *symname, void **fptr) read_port(beos_dl_port_out, (int32 *) (fptr), NULL, 0); if (fptr == NULL) - elog(NOTICE, "loading symbol '%s' failed ", symname); + elog(WARNING, "loading symbol '%s' failed ", symname); } status_t diff --git a/src/backend/port/dynloader/beos.c b/src/backend/port/dynloader/beos.c index f91ffe18042..ef742c7d46f 100644 --- a/src/backend/port/dynloader/beos.c +++ b/src/backend/port/dynloader/beos.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/port/dynloader/Attic/beos.c,v 1.9 2001/10/25 05:49:40 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/port/dynloader/Attic/beos.c,v 1.10 2002/03/06 06:09:58 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -52,7 +52,7 @@ pg_dlsym(void *handle, char *funcname) beos_dl_sym(*((int *) (handle)), funcname, (void **) &fpt); return fpt; } - elog(NOTICE, "add-on not loaded correctly"); + elog(WARNING, "add-on not loaded correctly"); return NULL; } @@ -63,7 +63,7 @@ pg_dlclose(void *handle) if ((handle) && ((*(int *) (handle)) >= 0)) { if (beos_dl_close(*(image_id *) handle) != B_OK) - elog(NOTICE, "error while unloading add-on"); + elog(WARNING, "error while unloading add-on"); free(handle); } } diff --git a/src/backend/port/dynloader/bsdi.c b/src/backend/port/dynloader/bsdi.c index b647cf09f18..c73cdc8e71a 100644 --- a/src/backend/port/dynloader/bsdi.c +++ b/src/backend/port/dynloader/bsdi.c @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/port/dynloader/bsdi.c,v 1.18 2001/11/05 17:46:27 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/port/dynloader/bsdi.c,v 1.19 2002/03/06 06:09:59 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -56,14 +56,14 @@ pg_dlopen(char *filename) { if (dld_link("/usr/lib/libc.a")) { - elog(NOTICE, "dld: Cannot link C library!"); + elog(WARNING, "dld: Cannot link C library!"); return NULL; } if (dld_undefined_sym_count > 0) { if (dld_link("/usr/lib/libm.a")) { - elog(NOTICE, "dld: Cannot link math library!"); + elog(WARNING, "dld: Cannot link math library!"); return NULL; } if (dld_undefined_sym_count > 0) @@ -72,10 +72,10 @@ pg_dlopen(char *filename) char **list = dld_list_undefined_sym(); /* list the undefined symbols, if any */ - elog(NOTICE, "dld: Undefined:"); + elog(WARNING, "dld: Undefined:"); do { - elog(NOTICE, " %s", *list); + elog(WARNING, " %s", *list); list++; count--; } while (count > 0); diff --git a/src/backend/port/dynloader/linux.c b/src/backend/port/dynloader/linux.c index 565464c993a..e427bb62ca2 100644 --- a/src/backend/port/dynloader/linux.c +++ b/src/backend/port/dynloader/linux.c @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/port/dynloader/linux.c,v 1.20 2001/10/28 06:25:47 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/port/dynloader/linux.c,v 1.21 2002/03/06 06:09:59 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -64,14 +64,14 @@ pg_dlopen(char *filename) { if (dld_link("/usr/lib/libc.a")) { - elog(NOTICE, "dld: Cannot link C library!"); + elog(WARNING, "dld: Cannot link C library!"); return NULL; } if (dld_undefined_sym_count > 0) { if (dld_link("/usr/lib/libm.a")) { - elog(NOTICE, "dld: Cannot link math library!"); + elog(WARNING, "dld: Cannot link math library!"); return NULL; } if (dld_undefined_sym_count > 0) @@ -80,10 +80,10 @@ pg_dlopen(char *filename) char **list = dld_list_undefined_sym(); /* list the undefined symbols, if any */ - elog(NOTICE, "dld: Undefined:"); + elog(WARNING, "dld: Undefined:"); do { - elog(NOTICE, " %s", *list); + elog(WARNING, " %s", *list); list++; count--; } while (count > 0); diff --git a/src/backend/port/dynloader/ultrix4.c b/src/backend/port/dynloader/ultrix4.c index bc10f940adf..76bb0cdecfc 100644 --- a/src/backend/port/dynloader/ultrix4.c +++ b/src/backend/port/dynloader/ultrix4.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/port/dynloader/ultrix4.c,v 1.13 2001/02/10 02:31:26 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/port/dynloader/ultrix4.c,v 1.14 2002/03/06 06:09:59 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -55,10 +55,10 @@ pg_dlopen(char *filename) /* list the undefined symbols, if any */ if (count) { - elog(NOTICE, "dl: Undefined:"); + elog(WARNING, "dl: Undefined:"); while (*list) { - elog(NOTICE, " %s", *list); + elog(WARNING, " %s", *list); list++; } } diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index 0e9f57500de..09e6beaa838 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -16,7 +16,7 @@ * * Copyright (c) 2001, PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.17 2002/02/07 22:20:26 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.18 2002/03/06 06:10:00 momjian Exp $ * ---------- */ #include "postgres.h" @@ -2150,7 +2150,7 @@ pgstat_read_statsfile(HTAB **dbhash, Oid onlydb, } else { - elog(NOTICE, + elog(WARNING, "PGSTAT: corrupted pgstat.stat file"); fclose(fpin); return; @@ -2187,7 +2187,7 @@ pgstat_read_statsfile(HTAB **dbhash, Oid onlydb, } else { - elog(NOTICE, + elog(WARNING, "PGSTAT: corrupted pgstat.stat file"); fclose(fpin); return; @@ -2260,7 +2260,7 @@ pgstat_read_statsfile(HTAB **dbhash, Oid onlydb, } else { - elog(NOTICE, + elog(WARNING, "PGSTAT: corrupted pgstat.stat file"); fclose(fpin); return; @@ -2301,7 +2301,7 @@ pgstat_read_statsfile(HTAB **dbhash, Oid onlydb, } else { - elog(NOTICE, + elog(WARNING, "PGSTAT: corrupted pgstat.stat file"); fclose(fpin); return; @@ -2332,7 +2332,7 @@ pgstat_read_statsfile(HTAB **dbhash, Oid onlydb, } else { - elog(NOTICE, + elog(WARNING, "PGSTAT: corrupted pgstat.stat file"); fclose(fpin); return; @@ -2388,7 +2388,7 @@ pgstat_read_statsfile(HTAB **dbhash, Oid onlydb, } else { - elog(NOTICE, + elog(WARNING, "PGSTAT: corrupted pgstat.stat file"); fclose(fpin); return; @@ -2430,7 +2430,7 @@ pgstat_read_statsfile(HTAB **dbhash, Oid onlydb, } else { - elog(NOTICE, "PGSTAT: corrupted pgstat.stat file"); + elog(WARNING, "PGSTAT: corrupted pgstat.stat file"); fclose(fpin); return; } diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index 9f42f268825..b84fd4d7b75 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.121 2002/03/02 21:39:28 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.122 2002/03/06 06:10:02 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -425,7 +425,7 @@ BufferAlloc(Relation reln, if (smok == FALSE) { - elog(NOTICE, "BufferAlloc: cannot write block %u for %u/%u", + elog(WARNING, "BufferAlloc: cannot write block %u for %u/%u", buf->tag.blockNum, buf->tag.rnode.tblNode, buf->tag.rnode.relNode); inProgress = FALSE; @@ -974,7 +974,7 @@ BufferPoolCheckLeak(void) { BufferDesc *buf = &(BufferDescriptors[i]); - elog(NOTICE, + elog(WARNING, "Buffer Leak: [%03d] (freeNext=%d, freePrev=%d, \ rel=%u/%u, blockNum=%u, flags=0x%x, refcount=%d %ld)", i, buf->freeNext, buf->freePrev, @@ -1403,7 +1403,7 @@ PrintPinnedBufs() for (i = 0; i < NBuffers; ++i, ++buf) { if (PrivateRefCount[i] > 0) - elog(NOTICE, "[%02d] (freeNext=%d, freePrev=%d, rel=%u/%u, \ + elog(WARNING, "[%02d] (freeNext=%d, freePrev=%d, rel=%u/%u, \ blockNum=%u, flags=0x%x, refcount=%d %ld)", i, buf->freeNext, buf->freePrev, buf->tag.rnode.tblNode, buf->tag.rnode.relNode, @@ -1504,7 +1504,7 @@ FlushRelationBuffers(Relation rel, BlockNumber firstDelBlock) (char *) MAKE_PTR(bufHdr->data)); if (status == SM_FAIL) { - elog(NOTICE, "FlushRelationBuffers(%s (local), %u): block %u is dirty, could not flush it", + elog(WARNING, "FlushRelationBuffers(%s (local), %u): block %u is dirty, could not flush it", RelationGetRelationName(rel), firstDelBlock, bufHdr->tag.blockNum); return (-1); @@ -1514,7 +1514,7 @@ FlushRelationBuffers(Relation rel, BlockNumber firstDelBlock) } if (LocalRefCount[i] > 0) { - elog(NOTICE, "FlushRelationBuffers(%s (local), %u): block %u is referenced (%ld)", + elog(WARNING, "FlushRelationBuffers(%s (local), %u): block %u is referenced (%ld)", RelationGetRelationName(rel), firstDelBlock, bufHdr->tag.blockNum, LocalRefCount[i]); return (-2); @@ -1592,7 +1592,7 @@ FlushRelationBuffers(Relation rel, BlockNumber firstDelBlock) if (!(bufHdr->flags & BM_FREE)) { LWLockRelease(BufMgrLock); - elog(NOTICE, "FlushRelationBuffers(%s, %u): block %u is referenced (private %ld, global %d)", + elog(WARNING, "FlushRelationBuffers(%s, %u): block %u is referenced (private %ld, global %d)", RelationGetRelationName(rel), firstDelBlock, bufHdr->tag.blockNum, PrivateRefCount[i], bufHdr->refcount); @@ -2198,7 +2198,7 @@ AbortBufferIO(void) /* Issue notice if this is not the first failure... */ if (buf->flags & BM_IO_ERROR) { - elog(NOTICE, "write error may be permanent: cannot write block %u for %u/%u", + elog(WARNING, "write error may be permanent: cannot write block %u for %u/%u", buf->tag.blockNum, buf->tag.rnode.tblNode, buf->tag.rnode.relNode); } diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index cfa3a34b35f..8726a394599 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/file/fd.c,v 1.89 2002/03/02 21:39:29 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/file/fd.c,v 1.90 2002/03/06 06:10:03 momjian Exp $ * * NOTES: * @@ -1193,7 +1193,7 @@ FreeFile(FILE *file) } } if (i < 0) - elog(NOTICE, "FreeFile: file was not obtained from AllocateFile"); + elog(WARNING, "FreeFile: file was not obtained from AllocateFile"); fclose(file); } diff --git a/src/backend/storage/ipc/ipc.c b/src/backend/storage/ipc/ipc.c index 6d6c001d073..ad351542347 100644 --- a/src/backend/storage/ipc/ipc.c +++ b/src/backend/storage/ipc/ipc.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.76 2002/03/02 21:39:29 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.77 2002/03/06 06:10:05 momjian Exp $ * * NOTES * @@ -350,7 +350,7 @@ IpcSemaphoreKill(IpcSemaphoreId semId) semId, strerror(errno)); /* - * We used to report a failure via elog(NOTICE), but that's pretty + * We used to report a failure via elog(WARNING), but that's pretty * pointless considering any client has long since disconnected ... */ } @@ -663,7 +663,7 @@ IpcMemoryDetach(int status, Datum shmaddr) DatumGetPointer(shmaddr), strerror(errno)); /* - * We used to report a failure via elog(NOTICE), but that's pretty + * We used to report a failure via elog(WARNING), but that's pretty * pointless considering any client has long since disconnected ... */ } @@ -680,7 +680,7 @@ IpcMemoryDelete(int status, Datum shmId) DatumGetInt32(shmId), IPC_RMID, strerror(errno)); /* - * We used to report a failure via elog(NOTICE), but that's pretty + * We used to report a failure via elog(WARNING), but that's pretty * pointless considering any client has long since disconnected ... */ } diff --git a/src/backend/storage/ipc/shmem.c b/src/backend/storage/ipc/shmem.c index 2b0eee5e4f2..f9056ae375b 100644 --- a/src/backend/storage/ipc/shmem.c +++ b/src/backend/storage/ipc/shmem.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.63 2001/12/28 18:16:43 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.64 2002/03/06 06:10:05 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -156,7 +156,7 @@ ShmemAlloc(Size size) SpinLockRelease(ShmemLock); if (!newSpace) - elog(NOTICE, "ShmemAlloc: out of memory"); + elog(WARNING, "ShmemAlloc: out of memory"); return newSpace; } @@ -346,7 +346,7 @@ ShmemInitStruct(const char *name, Size size, bool *foundPtr) { LWLockRelease(ShmemIndexLock); - elog(NOTICE, "ShmemInitStruct: ShmemIndex entry size is wrong"); + elog(WARNING, "ShmemInitStruct: ShmemIndex entry size is wrong"); /* let caller print its message too */ return NULL; } @@ -363,7 +363,7 @@ ShmemInitStruct(const char *name, Size size, bool *foundPtr) hash_search(ShmemIndex, (void *) &item, HASH_REMOVE, NULL); LWLockRelease(ShmemIndexLock); - elog(NOTICE, "ShmemInitStruct: cannot allocate '%s'", + elog(WARNING, "ShmemInitStruct: cannot allocate '%s'", name); *foundPtr = FALSE; return NULL; diff --git a/src/backend/storage/ipc/shmqueue.c b/src/backend/storage/ipc/shmqueue.c index d6f959f5ac3..17139238d85 100644 --- a/src/backend/storage/ipc/shmqueue.c +++ b/src/backend/storage/ipc/shmqueue.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmqueue.c,v 1.19 2001/11/05 17:46:28 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmqueue.c,v 1.20 2002/03/06 06:10:06 momjian Exp $ * * NOTES * @@ -30,7 +30,7 @@ /*#define SHMQUEUE_DEBUG*/ #ifdef SHMQUEUE_DEBUG -#define SHMQUEUE_DEBUG_ELOG NOTICE +#define SHMQUEUE_DEBUG_ELOG WARNING static void dumpQ(SHM_QUEUE *q, char *s); #endif diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 228509fa0f7..88f30496543 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.105 2002/03/02 21:39:29 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.106 2002/03/06 06:10:06 momjian Exp $ * * NOTES * Outside modules can create a lock table and acquire/release @@ -248,7 +248,7 @@ LockMethodTableInit(char *tabName, if (numModes >= MAX_LOCKMODES) { - elog(NOTICE, "LockMethodTableInit: too many lock types %d greater than %d", + elog(WARNING, "LockMethodTableInit: too many lock types %d greater than %d", numModes, MAX_LOCKMODES); return INVALID_LOCKMETHOD; } @@ -472,7 +472,7 @@ LockAcquire(LOCKMETHOD lockmethod, LOCKTAG *locktag, lockMethodTable = LockMethodTable[lockmethod]; if (!lockMethodTable) { - elog(NOTICE, "LockAcquire: bad lock table %d", lockmethod); + elog(WARNING, "LockAcquire: bad lock table %d", lockmethod); return FALSE; } @@ -662,7 +662,7 @@ LockAcquire(LOCKMETHOD lockmethod, LOCKTAG *locktag, (void *) holder, HASH_REMOVE, NULL); if (!holder) - elog(NOTICE, "LockAcquire: remove holder, table corrupted"); + elog(WARNING, "LockAcquire: remove holder, table corrupted"); } else HOLDER_PRINT("LockAcquire: NHOLDING", holder); @@ -1010,7 +1010,7 @@ LockRelease(LOCKMETHOD lockmethod, LOCKTAG *locktag, lockMethodTable = LockMethodTable[lockmethod]; if (!lockMethodTable) { - elog(NOTICE, "lockMethodTable is null in LockRelease"); + elog(WARNING, "lockMethodTable is null in LockRelease"); return FALSE; } @@ -1032,7 +1032,7 @@ LockRelease(LOCKMETHOD lockmethod, LOCKTAG *locktag, if (!lock) { LWLockRelease(masterLock); - elog(NOTICE, "LockRelease: no such lock"); + elog(WARNING, "LockRelease: no such lock"); return FALSE; } LOCK_PRINT("LockRelease: found", lock, lockmode); @@ -1055,10 +1055,10 @@ LockRelease(LOCKMETHOD lockmethod, LOCKTAG *locktag, LWLockRelease(masterLock); #ifdef USER_LOCKS if (lockmethod == USER_LOCKMETHOD) - elog(NOTICE, "LockRelease: no lock with this tag"); + elog(WARNING, "LockRelease: no lock with this tag"); else #endif - elog(NOTICE, "LockRelease: holder table corrupted"); + elog(WARNING, "LockRelease: holder table corrupted"); return FALSE; } HOLDER_PRINT("LockRelease: found", holder); @@ -1072,7 +1072,7 @@ LockRelease(LOCKMETHOD lockmethod, LOCKTAG *locktag, HOLDER_PRINT("LockRelease: WRONGTYPE", holder); Assert(holder->holding[lockmode] >= 0); LWLockRelease(masterLock); - elog(NOTICE, "LockRelease: you don't own a lock of type %s", + elog(WARNING, "LockRelease: you don't own a lock of type %s", lock_mode_names[lockmode]); return FALSE; } @@ -1126,7 +1126,7 @@ LockRelease(LOCKMETHOD lockmethod, LOCKTAG *locktag, if (!lock) { LWLockRelease(masterLock); - elog(NOTICE, "LockRelease: remove lock, table corrupted"); + elog(WARNING, "LockRelease: remove lock, table corrupted"); return FALSE; } wakeupNeeded = false; /* should be false, but make sure */ @@ -1155,7 +1155,7 @@ LockRelease(LOCKMETHOD lockmethod, LOCKTAG *locktag, if (!holder) { LWLockRelease(masterLock); - elog(NOTICE, "LockRelease: remove holder, table corrupted"); + elog(WARNING, "LockRelease: remove holder, table corrupted"); return FALSE; } } @@ -1204,7 +1204,7 @@ LockReleaseAll(LOCKMETHOD lockmethod, PROC *proc, lockMethodTable = LockMethodTable[lockmethod]; if (!lockMethodTable) { - elog(NOTICE, "LockReleaseAll: bad lockmethod %d", lockmethod); + elog(WARNING, "LockReleaseAll: bad lockmethod %d", lockmethod); return FALSE; } @@ -1308,7 +1308,7 @@ LockReleaseAll(LOCKMETHOD lockmethod, PROC *proc, if (!holder) { LWLockRelease(masterLock); - elog(NOTICE, "LockReleaseAll: holder table corrupted"); + elog(WARNING, "LockReleaseAll: holder table corrupted"); return FALSE; } @@ -1326,7 +1326,7 @@ LockReleaseAll(LOCKMETHOD lockmethod, PROC *proc, if (!lock) { LWLockRelease(masterLock); - elog(NOTICE, "LockReleaseAll: cannot remove lock from HTAB"); + elog(WARNING, "LockReleaseAll: cannot remove lock from HTAB"); return FALSE; } } diff --git a/src/backend/storage/page/bufpage.c b/src/backend/storage/page/bufpage.c index d23d9359ca2..92e0257c2c6 100644 --- a/src/backend/storage/page/bufpage.c +++ b/src/backend/storage/page/bufpage.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.43 2002/01/30 19:34:55 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.44 2002/03/06 06:10:07 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -107,7 +107,7 @@ PageAddItem(Page page, { if (offsetNumber > limit) { - elog(NOTICE, "PageAddItem: tried overwrite after maxoff"); + elog(WARNING, "PageAddItem: tried overwrite after maxoff"); return InvalidOffsetNumber; } if (offsetNumber < limit) @@ -116,7 +116,7 @@ PageAddItem(Page page, if (((*itemId).lp_flags & LP_USED) || ((*itemId).lp_len != 0)) { - elog(NOTICE, "PageAddItem: tried overwrite of used ItemId"); + elog(WARNING, "PageAddItem: tried overwrite of used ItemId"); return InvalidOffsetNumber; } } diff --git a/src/backend/storage/smgr/smgr.c b/src/backend/storage/smgr/smgr.c index 0fc28cedf67..259ee424911 100644 --- a/src/backend/storage/smgr/smgr.c +++ b/src/backend/storage/smgr/smgr.c @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.55 2002/03/02 21:39:30 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.56 2002/03/06 06:10:08 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -516,12 +516,12 @@ smgrDoPendingDeletes(bool isCommit) /* * And delete the physical files. * - * Note: we treat deletion failure as a NOTICE, not an error, + * Note: we treat deletion failure as a WARNING, not an error, * because we've already decided to commit or abort the * current xact. */ if ((*(smgrsw[pending->which].smgr_unlink)) (pending->relnode) == SM_FAIL) - elog(NOTICE, "cannot unlink %u/%u: %m", + elog(WARNING, "cannot unlink %u/%u: %m", pending->relnode.tblNode, pending->relnode.relNode); } pfree(pending); diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 57d0976d90f..7a3fa9f98b1 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.253 2002/03/04 01:46:03 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.254 2002/03/06 06:10:09 momjian Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -464,7 +464,7 @@ pg_analyze_and_rewrite(Node *parsetree) new_list = (List *) copyObject(querytree_list); /* This checks both copyObject() and the equal() routines... */ if (!equal(new_list, querytree_list)) - elog(NOTICE, "pg_analyze_and_rewrite: copyObject failed on parse tree"); + elog(WARNING, "pg_analyze_and_rewrite: copyObject failed on parse tree"); else querytree_list = new_list; #endif @@ -527,7 +527,7 @@ pg_plan_query(Query *querytree) #ifdef NOT_USED /* This checks both copyObject() and the equal() routines... */ if (!equal(new_plan, plan)) - elog(NOTICE, "pg_plan_query: copyObject failed on plan tree"); + elog(WARNING, "pg_plan_query: copyObject failed on plan tree"); else #endif plan = new_plan; @@ -686,7 +686,7 @@ pg_exec_query_string(char *query_string, /* string to execute */ if (!allowit) { - elog(NOTICE, "current transaction is aborted, " + elog(WARNING, "current transaction is aborted, " "queries ignored until end of transaction block"); /* @@ -952,7 +952,7 @@ void quickdie(SIGNAL_ARGS) { PG_SETMASK(&BlockSig); - elog(NOTICE, "Message from PostgreSQL backend:" + elog(WARNING, "Message from PostgreSQL backend:" "\n\tThe Postmaster has informed me that some other backend" "\n\tdied abnormally and possibly corrupted shared memory." "\n\tI have rolled back the current transaction and am" @@ -1251,7 +1251,7 @@ PostgresMain(int argc, char *argv[], const char *username) #ifdef USE_ASSERT_CHECKING SetConfigOption("debug_assertions", optarg, ctx, gucsource); #else - elog(NOTICE, "Assert checking is not compiled in"); + elog(WARNING, "Assert checking is not compiled in"); #endif break; @@ -1493,7 +1493,7 @@ PostgresMain(int argc, char *argv[], const char *username) */ if (XfuncMode != 0) { - elog(NOTICE, "only one -x flag is allowed"); + elog(WARNING, "only one -x flag is allowed"); errs++; break; } @@ -1511,7 +1511,7 @@ PostgresMain(int argc, char *argv[], const char *username) XfuncMode = XFUNC_WAIT; else { - elog(NOTICE, "use -x {off,nor,nopull,nopm,pullall,wait}"); + elog(WARNING, "use -x {off,nor,nopull,nopm,pullall,wait}"); errs++; } #endif @@ -1550,7 +1550,7 @@ PostgresMain(int argc, char *argv[], const char *username) if (Show_query_stats && (Show_parser_stats || Show_planner_stats || Show_executor_stats)) { - elog(NOTICE, "Query statistics are disabled because parser, planner, or executor statistics are on."); + elog(WARNING, "Query statistics are disabled because parser, planner, or executor statistics are on."); SetConfigOption("show_query_stats", "false", ctx, gucsource); } @@ -1627,7 +1627,7 @@ PostgresMain(int argc, char *argv[], const char *username) /* noninteractive case: nothing should be left after switches */ if (errs || argc != optind || DBName == NULL) { - elog(NOTICE, "%s: invalid command line arguments\nTry -? for help.", + elog(WARNING, "%s: invalid command line arguments\nTry -? for help.", argv[0]); proc_exit(0); /* not 1, that causes system-wide * restart... */ @@ -1639,7 +1639,7 @@ PostgresMain(int argc, char *argv[], const char *username) /* interactive case: database name can be last arg on command line */ if (errs || argc - optind > 1) { - elog(NOTICE, "%s: invalid command line arguments\nTry -? for help.", + elog(WARNING, "%s: invalid command line arguments\nTry -? for help.", argv[0]); proc_exit(1); } @@ -1647,7 +1647,7 @@ PostgresMain(int argc, char *argv[], const char *username) DBName = argv[optind]; else if ((DBName = username) == NULL) { - elog(NOTICE, "%s: user name undefined and no database specified", + elog(WARNING, "%s: user name undefined and no database specified", argv[0]); proc_exit(1); } @@ -1722,7 +1722,7 @@ PostgresMain(int argc, char *argv[], const char *username) if (!IsUnderPostmaster) { puts("\nPOSTGRES backend interactive interface "); - puts("$Revision: 1.253 $ $Date: 2002/03/04 01:46:03 $\n"); + puts("$Revision: 1.254 $ $Date: 2002/03/06 06:10:09 $\n"); } /* @@ -2134,10 +2134,10 @@ assertTest(int val) if (assert_enabled) { /* val != 0 should be trapped by previous Assert */ - elog(INFO, "Assert test successful (val = %d)", val); + elog(DEBUG3, "Assert test successful (val = %d)", val); } else - elog(INFO, "Assert checking is disabled (val = %d)", val); + elog(DEBUG3, "Assert checking is disabled (val = %d)", val); return val; } diff --git a/src/backend/tcop/pquery.c b/src/backend/tcop/pquery.c index 4566ab73112..ef4b4edd40f 100644 --- a/src/backend/tcop/pquery.c +++ b/src/backend/tcop/pquery.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.49 2002/02/27 19:52:41 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.50 2002/03/06 06:10:10 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -109,7 +109,7 @@ PreparePortal(char *portalName) * XXX Should we raise an error rather than closing the old * portal? */ - elog(NOTICE, "Closing pre-existing portal \"%s\"", + elog(WARNING, "Closing pre-existing portal \"%s\"", portalName); PortalDrop(portal); } diff --git a/src/backend/tioga/tgRecipe.c b/src/backend/tioga/tgRecipe.c index b9304c5bf77..f249f3ddac7 100644 --- a/src/backend/tioga/tgRecipe.c +++ b/src/backend/tioga/tgRecipe.c @@ -12,7 +12,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tioga/Attic/tgRecipe.c,v 1.20 2001/10/25 05:49:43 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/tioga/Attic/tgRecipe.c,v 1.21 2002/03/06 06:10:11 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -78,7 +78,7 @@ TextArray2ArrTgString(char *str) if (*str != ARRAY_LEFT_DELIM) { - elog(NOTICE, "TextArray2ArrTgString: badly formed string, must have %c as \ + elog(WARNING, "TextArray2ArrTgString: badly formed string, must have %c as \ first character\n", ARRAY_LEFT_DELIM); return result; } @@ -88,18 +88,18 @@ first character\n", ARRAY_LEFT_DELIM); { if (*str == '\0') { - elog(NOTICE, "TextArray2ArrTgString: text string ended prematurely\n"); + elog(WARNING, "TextArray2ArrTgString: text string ended prematurely\n"); return result; } if ((beginQuote = strchr(str, ARRAY_ELEM_LEFT)) == NULL) { - elog(NOTICE, "textArray2ArrTgString: missing a begin quote\n"); + elog(WARNING, "textArray2ArrTgString: missing a begin quote\n"); return result; } if ((endQuote = strchr(beginQuote + 1, '"')) == NULL) { - elog(NOTICE, "textArray2ArrTgString: missing an end quote\n"); + elog(WARNING, "textArray2ArrTgString: missing an end quote\n"); return result; } nextlen = endQuote - beginQuote; /* don't subtract one here @@ -135,7 +135,7 @@ findElemInRecipe(TgRecipe * r, char *elemName) if (strcmp(e->elemName, elemName) == 0) return e; } - elog(NOTICE, "Element named %s not found in recipe named %s", elemName, r->elmValue.elemName); + elog(WARNING, "Element named %s not found in recipe named %s", elemName, r->elmValue.elemName); return NULL; } @@ -159,7 +159,7 @@ findNodeInRecipe(TgRecipe * r, char *nodeName) if (strcmp(n->nodeName, nodeName) == 0) return n; } - elog(NOTICE, "Node named %s not found in recipe named %s", nodeName, r->elmValue.elemName); + elog(WARNING, "Node named %s not found in recipe named %s", nodeName, r->elmValue.elemName); return NULL; } @@ -245,7 +245,7 @@ fillTgNode(TgRecipe * r, TgNode * node, PortalBuffer * pbuf, int tupno) else if (strcmp(nodeType, "Recipe") == 0) node->nodeType = TG_RECIPE_NODE; else - elog(NOTICE, "fillTgNode: unknown nodeType field value : %s\n", nodeType); + elog(WARNING, "fillTgNode: unknown nodeType field value : %s\n", nodeType); } @@ -323,7 +323,7 @@ fillTgElement(TgElement * elem, PortalBuffer * pbuf, int tupno) else if (strcmp(srcLang, "Compiled") == 0) elem->srcLang = TG_COMPILED; else - elog(NOTICE, "fillTgElement(): unknown srcLang field value : %s\n", srcLang); + elog(WARNING, "fillTgElement(): unknown srcLang field value : %s\n", srcLang); elemType = PQgetvalue(pbuf, tupno, elemType_attnum); if (strcmp(elemType, "Ingred") == 0) @@ -333,7 +333,7 @@ fillTgElement(TgElement * elem, PortalBuffer * pbuf, int tupno) else if (strcmp(elemType, "Recipe") == 0) elem->elemType = TG_RECIPE; else - elog(NOTICE, "fillTgElement(): unknown elemType field value : %s\n", elemType); + elog(WARNING, "fillTgElement(): unknown elemType field value : %s\n", elemType); } @@ -373,8 +373,8 @@ lookupEdges(TgRecipe * r, char *name) pqres = PQexec(qbuf); if (*pqres == 'R' || *pqres == 'E') { - elog(NOTICE, "lookupEdges(): Error while executing query : %s\n", qbuf); - elog(NOTICE, "result = %s, error is %s\n", pqres, PQerrormsg); + elog(WARNING, "lookupEdges(): Error while executing query : %s\n", qbuf); + elog(WARNING, "result = %s, error is %s\n", pqres, PQerrormsg); return; } pbufname = ++pqres; @@ -399,12 +399,12 @@ lookupEdges(TgRecipe * r, char *name) if (!fromPortStr || fromPortStr[0] == '\0') { - elog(NOTICE, "lookupEdges(): SANITY CHECK failed. Edge with invalid fromPort value!"); + elog(WARNING, "lookupEdges(): SANITY CHECK failed. Edge with invalid fromPort value!"); return; } if (!toPortStr || toPortStr[0] == '\0') { - elog(NOTICE, "lookupEdges(): SANITY CHECK failed. Edge with invalid toPort value!!"); + elog(WARNING, "lookupEdges(): SANITY CHECK failed. Edge with invalid toPort value!!"); return; } fromPort = atoi(fromPortStr); @@ -413,13 +413,13 @@ lookupEdges(TgRecipe * r, char *name) fromNodePtr = findNodeInRecipe(r, fromNode); if (!fromNodePtr) { - elog(NOTICE, "lookupEdges(): SANITY CHECK failed. Edge with bad fromNode value!"); + elog(WARNING, "lookupEdges(): SANITY CHECK failed. Edge with bad fromNode value!"); return; } toNodePtr = findNodeInRecipe(r, toNode); if (!toNodePtr) { - elog(NOTICE, "lookupEdges(): SANITY CHECK failed. Edge with bad toNode value!"); + elog(WARNING, "lookupEdges(): SANITY CHECK failed. Edge with bad toNode value!"); return; } @@ -466,7 +466,7 @@ connectTee(TgRecipe * r, TgNodePtr fromNode, TgNodePtr toNode, if (origToNode == NULL) { - elog(NOTICE, "Internal Error: connectTee() called with a null origToNode"); + elog(WARNING, "Internal Error: connectTee() called with a null origToNode"); return; } @@ -536,8 +536,8 @@ fillAllNodes(TgRecipe * r, char *name) pqres = PQexec(qbuf); if (*pqres == 'R' || *pqres == 'E') { - elog(NOTICE, "fillAllNodes(): Error while executing query : %s\n", qbuf); - elog(NOTICE, "result = %s, error is %s\n", pqres, PQerrormsg); + elog(WARNING, "fillAllNodes(): Error while executing query : %s\n", qbuf); + elog(WARNING, "result = %s, error is %s\n", pqres, PQerrormsg); return; } pbufname = ++pqres; @@ -555,8 +555,8 @@ fillAllNodes(TgRecipe * r, char *name) pqres = PQexec(qbuf); if (*pqres == 'R' || *pqres == 'E') { - elog(NOTICE, "fillAllNodes(): Error while executing query : %s\n", qbuf); - elog(NOTICE, "result = %s, error is %s\n", pqres, PQerrormsg); + elog(WARNING, "fillAllNodes(): Error while executing query : %s\n", qbuf); + elog(WARNING, "result = %s, error is %s\n", pqres, PQerrormsg); return; } pbufname = ++pqres; @@ -592,8 +592,8 @@ fillAllElements(TgRecipe * r, char *name) pqres = PQexec(qbuf); if (*pqres == 'R' || *pqres == 'E') { - elog(NOTICE, "fillAllElements(): Error while executing query : %s\n", qbuf); - elog(NOTICE, "result = %s, error is %s\n", pqres, PQerrormsg); + elog(WARNING, "fillAllElements(): Error while executing query : %s\n", qbuf); + elog(WARNING, "result = %s, error is %s\n", pqres, PQerrormsg); return; } pbufname = ++pqres; @@ -703,8 +703,8 @@ retrieveRecipe(char *name) pqres = PQexec(qbuf); if (*pqres == 'R' || *pqres == 'E') { - elog(NOTICE, "retrieveRecipe: Error while executing query : %s\n", qbuf); - elog(NOTICE, "result = %s, error is %s\n", pqres, PQerrormsg); + elog(WARNING, "retrieveRecipe: Error while executing query : %s\n", qbuf); + elog(WARNING, "result = %s, error is %s\n", pqres, PQerrormsg); return NULL; } pbufname = ++pqres; @@ -712,12 +712,12 @@ retrieveRecipe(char *name) ntups = PQntuplesGroup(pbuf, 0); if (ntups == 0) { - elog(NOTICE, "retrieveRecipe(): No recipe named %s exists\n", name); + elog(WARNING, "retrieveRecipe(): No recipe named %s exists\n", name); return NULL; } if (ntups != 1) { - elog(NOTICE, "retrieveRecipe(): Multiple (%d) recipes named %s exists\n", ntups, name); + elog(WARNING, "retrieveRecipe(): Multiple (%d) recipes named %s exists\n", ntups, name); return NULL; } diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c index 5a901f45f2e..199630e0cc4 100644 --- a/src/backend/utils/adt/formatting.c +++ b/src/backend/utils/adt/formatting.c @@ -1,7 +1,7 @@ /* ----------------------------------------------------------------------- * formatting.c * - * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.50 2002/02/18 14:24:35 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.51 2002/03/06 06:10:12 momjian Exp $ * * * Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group @@ -64,7 +64,7 @@ */ /*** #define DEBUG_TO_FROM_CHAR -#define DEBUG_elog_output NOTICE +#define DEBUG_elog_output DEBUG3 ***/ #include "postgres.h" @@ -1867,7 +1867,7 @@ dch_time(int arg, char *inout, int suf, int flag, FormatNode *node, void *data) x == 2 ? 10 : 1; /* - * elog(NOTICE, "X: %d, MS: %d, LEN: %d", x, tmfc->ms, + * elog(DEBUG3, "X: %d, MS: %d, LEN: %d", x, tmfc->ms, * len); */ return len - 1 + SKIP_THth(suf); @@ -1908,7 +1908,7 @@ dch_time(int arg, char *inout, int suf, int flag, FormatNode *node, void *data) x == 5 ? 10 : 1; /* - * elog(NOTICE, "X: %d, US: %d, LEN: %d", x, tmfc->us, + * elog(DEBUG3, "X: %d, US: %d, LEN: %d", x, tmfc->us, * len); */ return len - 1 + SKIP_THth(suf); @@ -2430,7 +2430,7 @@ dch_date(int arg, char *inout, int suf, int flag, FormatNode *node, void *data) else if (flag == FROM_CHAR) { sscanf(inout, "%03d", &tmfc->year); - + /* * 3-digit year: * '100' ... '999' = 1100 ... 1999 @@ -2466,7 +2466,7 @@ dch_date(int arg, char *inout, int suf, int flag, FormatNode *node, void *data) * 2-digit year: * '00' ... '69' = 2000 ... 2069 * '70' ... '99' = 1970 ... 1999 - */ + */ if (tmfc->year < 70) tmfc->year += 2000; else @@ -2492,7 +2492,7 @@ dch_date(int arg, char *inout, int suf, int flag, FormatNode *node, void *data) else if (flag == FROM_CHAR) { sscanf(inout, "%1d", &tmfc->year); - + /* * 1-digit year: always +2000 */ diff --git a/src/backend/utils/adt/nabstime.c b/src/backend/utils/adt/nabstime.c index 3bbf5ec7c89..299a082facb 100644 --- a/src/backend/utils/adt/nabstime.c +++ b/src/backend/utils/adt/nabstime.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.91 2001/10/25 05:49:44 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.92 2002/03/06 06:10:13 momjian Exp $ * * NOTES * @@ -367,7 +367,7 @@ abstime2tm(AbsoluteTime _time, int *tzp, struct tm * tm, char **tzn) */ StrNCpy(*tzn, tm->tm_zone, MAXTZLEN + 1); if (strlen(tm->tm_zone) > MAXTZLEN) - elog(NOTICE, "Invalid timezone \'%s\'", tm->tm_zone); + elog(WARNING, "Invalid timezone \'%s\'", tm->tm_zone); } } } @@ -400,7 +400,7 @@ abstime2tm(AbsoluteTime _time, int *tzp, struct tm * tm, char **tzn) */ StrNCpy(*tzn, tzname[tm->tm_isdst], MAXTZLEN + 1); if (strlen(tzname[tm->tm_isdst]) > MAXTZLEN) - elog(NOTICE, "Invalid timezone \'%s\'", tzname[tm->tm_isdst]); + elog(WARNING, "Invalid timezone \'%s\'", tzname[tm->tm_isdst]); } } } diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c index 9952f01714a..2c86ff5bcf1 100644 --- a/src/backend/utils/adt/pg_locale.c +++ b/src/backend/utils/adt/pg_locale.c @@ -4,7 +4,7 @@ * The PostgreSQL locale utils. * * - * $Header: /cvsroot/pgsql/src/backend/utils/adt/pg_locale.c,v 1.14 2002/03/02 21:39:32 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/pg_locale.c,v 1.15 2002/03/06 06:10:14 momjian Exp $ * * Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group * @@ -119,28 +119,28 @@ static void PGLC_setlocale(PG_LocaleCategories *lc) { if (!setlocale(LC_COLLATE, lc->lc_collate)) - elog(NOTICE, "pg_setlocale(): 'LC_COLLATE=%s' cannot be honored.", + elog(WARNING, "pg_setlocale(): 'LC_COLLATE=%s' cannot be honored.", lc->lc_collate); if (!setlocale(LC_CTYPE, lc->lc_ctype)) - elog(NOTICE, "pg_setlocale(): 'LC_CTYPE=%s' cannot be honored.", + elog(WARNING, "pg_setlocale(): 'LC_CTYPE=%s' cannot be honored.", lc->lc_ctype); if (!setlocale(LC_NUMERIC, lc->lc_numeric)) - elog(NOTICE, "pg_setlocale(): 'LC_NUMERIC=%s' cannot be honored.", + elog(WARNING, "pg_setlocale(): 'LC_NUMERIC=%s' cannot be honored.", lc->lc_numeric); if (!setlocale(LC_TIME, lc->lc_time)) - elog(NOTICE, "pg_setlocale(): 'LC_TIME=%s' cannot be honored.", + elog(WARNING, "pg_setlocale(): 'LC_TIME=%s' cannot be honored.", lc->lc_time); if (!setlocale(LC_MONETARY, lc->lc_monetary)) - elog(NOTICE, "pg_setlocale(): 'LC_MONETARY=%s' cannot be honored.", + elog(WARNING, "pg_setlocale(): 'LC_MONETARY=%s' cannot be honored.", lc->lc_monetary); #ifdef LC_MESSAGES if (!setlocale(LC_MESSAGES, lc->lc_messages)) - elog(NOTICE, "pg_setlocale(): 'LC_MESSAGES=%s' cannot be honored.", + elog(WARNING, "pg_setlocale(): 'LC_MESSAGES=%s' cannot be honored.", lc->lc_messages); #endif } diff --git a/src/backend/utils/adt/ri_triggers.c b/src/backend/utils/adt/ri_triggers.c index 6fcc8142526..5ee4c26c553 100644 --- a/src/backend/utils/adt/ri_triggers.c +++ b/src/backend/utils/adt/ri_triggers.c @@ -18,7 +18,7 @@ * Portions Copyright (c) 2000-2001, PostgreSQL Global Development Group * Copyright 1999 Jan Wieck * - * $Header: /cvsroot/pgsql/src/backend/utils/adt/ri_triggers.c,v 1.31 2001/11/12 06:09:09 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/ri_triggers.c,v 1.32 2002/03/06 06:10:14 momjian Exp $ * * ---------- */ @@ -251,7 +251,7 @@ RI_FKey_check(PG_FUNCTION_ARGS) * Execute the plan */ if (SPI_connect() != SPI_OK_CONNECT) - elog(NOTICE, "SPI_connect() failed in RI_FKey_check()"); + elog(WARNING, "SPI_connect() failed in RI_FKey_check()"); SetUserId(RelationGetForm(pk_rel)->relowner); /* pk_rel is no longer neede OK ? */ @@ -269,7 +269,7 @@ RI_FKey_check(PG_FUNCTION_ARGS) tgargs[RI_PK_RELNAME_ARGNO]); if (SPI_finish() != SPI_OK_FINISH) - elog(NOTICE, "SPI_finish() failed in RI_FKey_check()"); + elog(WARNING, "SPI_finish() failed in RI_FKey_check()"); return PointerGetDatum(NULL); @@ -362,7 +362,7 @@ RI_FKey_check(PG_FUNCTION_ARGS) * to see it). */ if (SPI_connect() != SPI_OK_CONNECT) - elog(NOTICE, "SPI_connect() failed in RI_FKey_check()"); + elog(WARNING, "SPI_connect() failed in RI_FKey_check()"); /* * Fetch or prepare a saved plan for the real check @@ -452,7 +452,7 @@ RI_FKey_check(PG_FUNCTION_ARGS) tgargs[RI_PK_RELNAME_ARGNO]); if (SPI_finish() != SPI_OK_FINISH) - elog(NOTICE, "SPI_finish() failed in RI_FKey_check()"); + elog(WARNING, "SPI_finish() failed in RI_FKey_check()"); return PointerGetDatum(NULL); @@ -594,7 +594,7 @@ RI_FKey_noaction_del(PG_FUNCTION_ARGS) heap_close(fk_rel, NoLock); if (SPI_connect() != SPI_OK_CONNECT) - elog(NOTICE, "SPI_connect() failed in RI_FKey_noaction_del()"); + elog(WARNING, "SPI_connect() failed in RI_FKey_noaction_del()"); /* * Fetch or prepare a saved plan for the restrict delete @@ -675,7 +675,7 @@ RI_FKey_noaction_del(PG_FUNCTION_ARGS) tgargs[RI_FK_RELNAME_ARGNO]); if (SPI_finish() != SPI_OK_FINISH) - elog(NOTICE, "SPI_finish() failed in RI_FKey_noaction_del()"); + elog(WARNING, "SPI_finish() failed in RI_FKey_noaction_del()"); return PointerGetDatum(NULL); @@ -808,7 +808,7 @@ RI_FKey_noaction_upd(PG_FUNCTION_ARGS) return PointerGetDatum(NULL); if (SPI_connect() != SPI_OK_CONNECT) - elog(NOTICE, "SPI_connect() failed in RI_FKey_noaction_upd()"); + elog(WARNING, "SPI_connect() failed in RI_FKey_noaction_upd()"); /* * Fetch or prepare a saved plan for the noaction update @@ -889,7 +889,7 @@ RI_FKey_noaction_upd(PG_FUNCTION_ARGS) tgargs[RI_FK_RELNAME_ARGNO]); if (SPI_finish() != SPI_OK_FINISH) - elog(NOTICE, "SPI_finish() failed in RI_FKey_noaction_upd()"); + elog(WARNING, "SPI_finish() failed in RI_FKey_noaction_upd()"); return PointerGetDatum(NULL); @@ -1011,7 +1011,7 @@ RI_FKey_cascade_del(PG_FUNCTION_ARGS) heap_close(fk_rel, NoLock); if (SPI_connect() != SPI_OK_CONNECT) - elog(NOTICE, "SPI_connect() failed in RI_FKey_cascade_del()"); + elog(WARNING, "SPI_connect() failed in RI_FKey_cascade_del()"); /* * Fetch or prepare a saved plan for the cascaded delete @@ -1082,7 +1082,7 @@ RI_FKey_cascade_del(PG_FUNCTION_ARGS) SetUserId(save_uid); if (SPI_finish() != SPI_OK_FINISH) - elog(NOTICE, "SPI_finish() failed in RI_FKey_cascade_del()"); + elog(WARNING, "SPI_finish() failed in RI_FKey_cascade_del()"); return PointerGetDatum(NULL); @@ -1214,7 +1214,7 @@ RI_FKey_cascade_upd(PG_FUNCTION_ARGS) return PointerGetDatum(NULL); if (SPI_connect() != SPI_OK_CONNECT) - elog(NOTICE, "SPI_connect() failed in RI_FKey_cascade_upd()"); + elog(WARNING, "SPI_connect() failed in RI_FKey_cascade_upd()"); /* * Fetch or prepare a saved plan for the cascaded update of @@ -1306,7 +1306,7 @@ RI_FKey_cascade_upd(PG_FUNCTION_ARGS) SetUserId(save_uid); if (SPI_finish() != SPI_OK_FINISH) - elog(NOTICE, "SPI_finish() failed in RI_FKey_cascade_upd()"); + elog(WARNING, "SPI_finish() failed in RI_FKey_cascade_upd()"); return PointerGetDatum(NULL); @@ -1435,7 +1435,7 @@ RI_FKey_restrict_del(PG_FUNCTION_ARGS) heap_close(fk_rel, NoLock); if (SPI_connect() != SPI_OK_CONNECT) - elog(NOTICE, "SPI_connect() failed in RI_FKey_restrict_del()"); + elog(WARNING, "SPI_connect() failed in RI_FKey_restrict_del()"); /* * Fetch or prepare a saved plan for the restrict delete @@ -1517,7 +1517,7 @@ RI_FKey_restrict_del(PG_FUNCTION_ARGS) tgargs[RI_FK_RELNAME_ARGNO]); if (SPI_finish() != SPI_OK_FINISH) - elog(NOTICE, "SPI_finish() failed in RI_FKey_restrict_del()"); + elog(WARNING, "SPI_finish() failed in RI_FKey_restrict_del()"); return PointerGetDatum(NULL); @@ -1655,7 +1655,7 @@ RI_FKey_restrict_upd(PG_FUNCTION_ARGS) return PointerGetDatum(NULL); if (SPI_connect() != SPI_OK_CONNECT) - elog(NOTICE, "SPI_connect() failed in RI_FKey_restrict_upd()"); + elog(WARNING, "SPI_connect() failed in RI_FKey_restrict_upd()"); /* * Fetch or prepare a saved plan for the restrict update @@ -1739,7 +1739,7 @@ RI_FKey_restrict_upd(PG_FUNCTION_ARGS) tgargs[RI_FK_RELNAME_ARGNO]); if (SPI_finish() != SPI_OK_FINISH) - elog(NOTICE, "SPI_finish() failed in RI_FKey_restrict_upd()"); + elog(WARNING, "SPI_finish() failed in RI_FKey_restrict_upd()"); return PointerGetDatum(NULL); @@ -1861,7 +1861,7 @@ RI_FKey_setnull_del(PG_FUNCTION_ARGS) heap_close(fk_rel, NoLock); if (SPI_connect() != SPI_OK_CONNECT) - elog(NOTICE, "SPI_connect() failed in RI_FKey_setnull_del()"); + elog(WARNING, "SPI_connect() failed in RI_FKey_setnull_del()"); /* * Fetch or prepare a saved plan for the set null delete @@ -1943,7 +1943,7 @@ RI_FKey_setnull_del(PG_FUNCTION_ARGS) SetUserId(save_uid); if (SPI_finish() != SPI_OK_FINISH) - elog(NOTICE, "SPI_finish() failed in RI_FKey_setnull_del()"); + elog(WARNING, "SPI_finish() failed in RI_FKey_setnull_del()"); return PointerGetDatum(NULL); @@ -2078,7 +2078,7 @@ RI_FKey_setnull_upd(PG_FUNCTION_ARGS) return PointerGetDatum(NULL); if (SPI_connect() != SPI_OK_CONNECT) - elog(NOTICE, "SPI_connect() failed in RI_FKey_setnull_upd()"); + elog(WARNING, "SPI_connect() failed in RI_FKey_setnull_upd()"); /* * "MATCH <unspecified>" only changes columns corresponding to @@ -2196,7 +2196,7 @@ RI_FKey_setnull_upd(PG_FUNCTION_ARGS) SetUserId(save_uid); if (SPI_finish() != SPI_OK_FINISH) - elog(NOTICE, "SPI_finish() failed in RI_FKey_setnull_upd()"); + elog(WARNING, "SPI_finish() failed in RI_FKey_setnull_upd()"); return PointerGetDatum(NULL); @@ -2317,7 +2317,7 @@ RI_FKey_setdefault_del(PG_FUNCTION_ARGS) } if (SPI_connect() != SPI_OK_CONNECT) - elog(NOTICE, "SPI_connect() failed in RI_FKey_setdefault_del()"); + elog(WARNING, "SPI_connect() failed in RI_FKey_setdefault_del()"); /* * Prepare a plan for the set defalt delete operation. @@ -2445,7 +2445,7 @@ RI_FKey_setdefault_del(PG_FUNCTION_ARGS) SetUserId(save_uid); if (SPI_finish() != SPI_OK_FINISH) - elog(NOTICE, "SPI_finish() failed in RI_FKey_setdefault_del()"); + elog(WARNING, "SPI_finish() failed in RI_FKey_setdefault_del()"); return PointerGetDatum(NULL); @@ -2578,7 +2578,7 @@ RI_FKey_setdefault_upd(PG_FUNCTION_ARGS) return PointerGetDatum(NULL); if (SPI_connect() != SPI_OK_CONNECT) - elog(NOTICE, "SPI_connect() failed in RI_FKey_setdefault_upd()"); + elog(WARNING, "SPI_connect() failed in RI_FKey_setdefault_upd()"); /* * Prepare a plan for the set defalt delete operation. @@ -2721,7 +2721,7 @@ RI_FKey_setdefault_upd(PG_FUNCTION_ARGS) SetUserId(save_uid); if (SPI_finish() != SPI_OK_FINISH) - elog(NOTICE, "SPI_finish() failed in RI_FKey_setdefault_upd()"); + elog(WARNING, "SPI_finish() failed in RI_FKey_setdefault_upd()"); return PointerGetDatum(NULL); diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index 95e217b9a4f..2d14e4ff752 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -3,7 +3,7 @@ * back to source text * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.90 2002/02/19 20:11:16 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.91 2002/03/06 06:10:16 momjian Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -2631,7 +2631,7 @@ tleIsArrayAssign(TargetEntry *tle) */ if (aref->refexpr == NULL || !IsA(aref->refexpr, Var) || ((Var *) aref->refexpr)->varattno != tle->resdom->resno) - elog(NOTICE, "tleIsArrayAssign: I'm confused ..."); + elog(WARNING, "tleIsArrayAssign: I'm confused ..."); return true; } diff --git a/src/backend/utils/adt/timestamp.c b/src/backend/utils/adt/timestamp.c index cff48d925e9..ad36d5610d3 100644 --- a/src/backend/utils/adt/timestamp.c +++ b/src/backend/utils/adt/timestamp.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.63 2002/03/04 03:55:46 ishii Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.64 2002/03/06 06:10:18 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -2270,7 +2270,7 @@ interval_trunc(PG_FUNCTION_ARGS) } else { - elog(NOTICE, "Unable to decode INTERVAL; internal coding error"); + elog(WARNING, "Unable to decode INTERVAL; internal coding error"); *result = *interval; } } @@ -2771,7 +2771,7 @@ interval_part(PG_FUNCTION_ARGS) } else { - elog(NOTICE, "Unable to decode INTERVAL" + elog(WARNING, "Unable to decode INTERVAL" "\n\tinterval_part() internal coding error"); result = 0; } diff --git a/src/backend/utils/adt/varbit.c b/src/backend/utils/adt/varbit.c index b1304fbae72..617c7579a6a 100644 --- a/src/backend/utils/adt/varbit.c +++ b/src/backend/utils/adt/varbit.c @@ -9,7 +9,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/varbit.c,v 1.20 2001/10/25 05:49:46 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/varbit.c,v 1.21 2002/03/06 06:10:19 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1197,7 +1197,7 @@ bitposition(PG_FUNCTION_ARGS) mask2 = end_mask << (BITS_PER_BYTE - is); is_match = mask2 == 0; #if 0 - elog(NOTICE, "S. %d %d em=%2x sm=%2x r=%d", + elog(DEBUG3, "S. %d %d em=%2x sm=%2x r=%d", i, is, end_mask, mask2, is_match); #endif break; diff --git a/src/backend/utils/cache/catcache.c b/src/backend/utils/cache/catcache.c index e04792d71fa..ecf0f87c749 100644 --- a/src/backend/utils/cache/catcache.c +++ b/src/backend/utils/cache/catcache.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.90 2002/03/03 17:47:55 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.91 2002/03/06 06:10:21 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -463,7 +463,7 @@ AtEOXact_CatCache(bool isCommit) if (ct->refcount != 0) { if (isCommit) - elog(NOTICE, "Cache reference leak: cache %s (%d), tuple %u has count %d", + elog(WARNING, "Cache reference leak: cache %s (%d), tuple %u has count %d", ct->my_cache->cc_relname, ct->my_cache->id, ct->tuple.t_data->t_oid, ct->refcount); diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index e3b0c69372b..233689c22d7 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.153 2002/03/03 17:47:55 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.154 2002/03/06 06:10:21 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -236,17 +236,17 @@ do { \ relname, \ HASH_REMOVE, NULL); \ if (namehentry == NULL) \ - elog(NOTICE, "trying to delete a reldesc that does not exist."); \ + elog(WARNING, "trying to delete a reldesc that does not exist."); \ idhentry = (RelIdCacheEnt*)hash_search(RelationIdCache, \ (void *)&(RELATION->rd_id), \ HASH_REMOVE, NULL); \ if (idhentry == NULL) \ - elog(NOTICE, "trying to delete a reldesc that does not exist."); \ + elog(WARNING, "trying to delete a reldesc that does not exist."); \ nodentry = (RelNodeCacheEnt*)hash_search(RelationNodeCache, \ (void *)&(RELATION->rd_node), \ HASH_REMOVE, NULL); \ if (nodentry == NULL) \ - elog(NOTICE, "trying to delete a reldesc that does not exist."); \ + elog(WARNING, "trying to delete a reldesc that does not exist."); \ } while(0) @@ -2471,7 +2471,7 @@ AttrDefaultFetch(Relation relation) if (adform->adnum != attrdef[i].adnum) continue; if (attrdef[i].adbin != NULL) - elog(NOTICE, "AttrDefaultFetch: second record found for attr %s in rel %s", + elog(WARNING, "AttrDefaultFetch: second record found for attr %s in rel %s", NameStr(relation->rd_att->attrs[adform->adnum - 1]->attname), RelationGetRelationName(relation)); @@ -2479,7 +2479,7 @@ AttrDefaultFetch(Relation relation) Anum_pg_attrdef_adbin, adrel->rd_att, &isnull); if (isnull) - elog(NOTICE, "AttrDefaultFetch: adbin IS NULL for attr %s in rel %s", + elog(WARNING, "AttrDefaultFetch: adbin IS NULL for attr %s in rel %s", NameStr(relation->rd_att->attrs[adform->adnum - 1]->attname), RelationGetRelationName(relation)); else @@ -2490,7 +2490,7 @@ AttrDefaultFetch(Relation relation) } if (i >= ndef) - elog(NOTICE, "AttrDefaultFetch: unexpected record found for attr %d in rel %s", + elog(WARNING, "AttrDefaultFetch: unexpected record found for attr %d in rel %s", adform->adnum, RelationGetRelationName(relation)); } @@ -2499,7 +2499,7 @@ AttrDefaultFetch(Relation relation) heap_close(adrel, AccessShareLock); if (found != ndef) - elog(NOTICE, "AttrDefaultFetch: %d record(s) not found for rel %s", + elog(WARNING, "AttrDefaultFetch: %d record(s) not found for rel %s", ndef - found, RelationGetRelationName(relation)); } @@ -3020,7 +3020,7 @@ write_relcache_init_file(void) * We used to consider this a fatal error, but we might as well * continue with backend startup ... */ - elog(NOTICE, "Cannot create init file %s: %m\n\tContinuing anyway, but there's something wrong.", tempfilename); + elog(WARNING, "Cannot create init file %s: %m\n\tContinuing anyway, but there's something wrong.", tempfilename); return; } @@ -3168,7 +3168,7 @@ write_relcache_init_file(void) */ if (rename(tempfilename, finalfilename) < 0) { - elog(NOTICE, "Cannot rename init file %s to %s: %m\n\tContinuing anyway, but there's something wrong.", tempfilename, finalfilename); + elog(WARNING, "Cannot rename init file %s to %s: %m\n\tContinuing anyway, but there's something wrong.", tempfilename, finalfilename); /* * If we fail, try to clean up the useless temp file; don't bother * to complain if this fails too. diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index 69e6fd52dbe..3b4490af44f 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.93 2002/03/04 01:46:03 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.94 2002/03/06 06:10:24 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -44,7 +44,7 @@ const char server_min_messages_str_default[] = "notice"; int client_min_messages; char *client_min_messages_str = NULL; -const char client_min_messages_str_default[] = "info"; +const char client_min_messages_str_default[] = "notice"; #ifdef ENABLE_SYSLOG /* @@ -75,10 +75,6 @@ static void send_message_to_frontend(int type, const char *msg); static const char *useful_strerror(int errnum); static const char *elog_message_prefix(int lev); -#define send_notice_to_frontend(msg) send_message_to_frontend(NOTICE, msg) -#define send_error_to_frontend(msg) send_message_to_frontend(ERROR, msg) - - static int Debugfile = -1; @@ -190,7 +186,7 @@ elog(int lev, const char *fmt,...) if (ClientAuthInProgress) output_to_client = (lev >= ERROR); else - output_to_client = (lev >= client_min_messages); + output_to_client = (lev >= client_min_messages || lev == INFO); } /* Skip formatting effort if non-error message will not be output */ @@ -376,6 +372,7 @@ elog(int lev, const char *fmt,...) syslog_level = LOG_INFO; break; case NOTICE: + case WARNING: syslog_level = LOG_NOTICE; break; case ERROR: @@ -415,9 +412,9 @@ elog(int lev, const char *fmt,...) */ oldcxt = MemoryContextSwitchTo(ErrorContext); - if (lev <= NOTICE) + if (lev <= WARNING) /* exclude the timestamp from msg sent to frontend */ - send_notice_to_frontend(msg_buf + timestamp_size); + send_message_to_frontend(lev, msg_buf + timestamp_size); else { /* @@ -426,7 +423,7 @@ elog(int lev, const char *fmt,...) * protocol. */ pq_endcopyout(true); - send_error_to_frontend(msg_buf + timestamp_size); + send_message_to_frontend(ERROR, msg_buf + timestamp_size); } MemoryContextSwitchTo(oldcxt); @@ -509,7 +506,7 @@ elog(int lev, const char *fmt,...) proc_exit(2); } - /* We reach here if lev <= NOTICE. OK to return to caller. */ + /* We reach here if lev <= WARNING. OK to return to caller. */ } @@ -747,7 +744,8 @@ send_message_to_frontend(int type, const char *msg) AssertArg(type <= ERROR); pq_beginmessage(&buf); - pq_sendbyte(&buf, type != ERROR ? 'N' : 'E'); /* N is INFO or NOTICE */ + pq_sendbyte(&buf, type != ERROR ? 'N' : 'E'); /* N is INFO, NOTICE, + * or WARNING */ pq_sendstring(&buf, msg); pq_endmessage(&buf); @@ -820,6 +818,9 @@ elog_message_prefix(int lev) case NOTICE: prefix = gettext("NOTICE: "); break; + case WARNING: + prefix = gettext("WARNING: "); + break; case ERROR: prefix = gettext("ERROR: "); break; @@ -852,6 +853,7 @@ check_server_min_messages(const char *lev) strcasecmp(lev, "log") == 0 || strcasecmp(lev, "info") == 0 || strcasecmp(lev, "notice") == 0 || + strcasecmp(lev, "warning") == 0 || strcasecmp(lev, "error") == 0 || strcasecmp(lev, "fatal") == 0 || strcasecmp(lev, "panic") == 0) @@ -880,6 +882,8 @@ assign_server_min_messages(const char *lev) server_min_messages = INFO; else if (strcasecmp(lev, "notice") == 0) server_min_messages = NOTICE; + else if (strcasecmp(lev, "warning") == 0) + server_min_messages = WARNING; else if (strcasecmp(lev, "error") == 0) server_min_messages = ERROR; else if (strcasecmp(lev, "fatal") == 0) @@ -901,8 +905,8 @@ check_client_min_messages(const char *lev) strcasecmp(lev, "debug4") == 0 || strcasecmp(lev, "debug5") == 0 || strcasecmp(lev, "log") == 0 || - strcasecmp(lev, "info") == 0 || strcasecmp(lev, "notice") == 0 || + strcasecmp(lev, "warning") == 0 || strcasecmp(lev, "error") == 0) return true; return false; @@ -925,10 +929,10 @@ assign_client_min_messages(const char *lev) client_min_messages = DEBUG5; else if (strcasecmp(lev, "log") == 0) client_min_messages = LOG; - else if (strcasecmp(lev, "info") == 0) - client_min_messages = INFO; else if (strcasecmp(lev, "notice") == 0) client_min_messages = NOTICE; + else if (strcasecmp(lev, "warning") == 0) + client_min_messages = WARNING; else if (strcasecmp(lev, "error") == 0) client_min_messages = ERROR; else diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 858b6e649c7..3ffb8af0541 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.99 2002/03/01 22:45:15 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.100 2002/03/06 06:10:25 momjian Exp $ * * *------------------------------------------------------------------------- @@ -354,8 +354,8 @@ InitPostgres(const char *dbname, const char *username) InitializeSessionUserIdStandalone(); if (!ThereIsAtLeastOneUser()) { - elog(NOTICE, "There are currently no users defined in this database system."); - elog(NOTICE, "You should immediately run 'CREATE USER \"%s\" WITH SYSID %d CREATEUSER;'.", + elog(WARNING, "There are currently no users defined in this database system."); + elog(WARNING, "You should immediately run 'CREATE USER \"%s\" WITH SYSID %d CREATEUSER;'.", username, BOOTSTRAP_USESYSID); } } diff --git a/src/backend/utils/mb/conv.c b/src/backend/utils/mb/conv.c index f65be20f931..07d281c6051 100644 --- a/src/backend/utils/mb/conv.c +++ b/src/backend/utils/mb/conv.c @@ -6,7 +6,7 @@ * WIN1250 client encoding support contributed by Pavel Behal * SJIS UDC (NEC selection IBM kanji) support contributed by Eiji Tokuya * - * $Id: conv.c,v 1.36 2002/03/05 05:52:43 momjian Exp $ + * $Id: conv.c,v 1.37 2002/03/06 06:10:26 momjian Exp $ * * */ @@ -1311,7 +1311,7 @@ utf_to_local(unsigned char *utf, unsigned char *iso, sizeof(pg_utf_to_local), compare1); if (p == NULL) { - elog(NOTICE, "utf_to_local: could not convert UTF-8 (0x%04x). Ignored", iutf); + elog(WARNING, "utf_to_local: could not convert UTF-8 (0x%04x). Ignored", iutf); continue; } if (p->code & 0xff000000) @@ -1447,7 +1447,7 @@ local_to_utf(unsigned char *iso, unsigned char *utf, sizeof(pg_local_to_utf), compare2); if (p == NULL) { - elog(NOTICE, "local_to_utf: could not convert (0x%04x) %s to UTF-8. Ignored", + elog(WARNING, "local_to_utf: could not convert (0x%04x) %s to UTF-8. Ignored", iiso, (&pg_enc2name_tbl[encoding])->name); continue; } @@ -1750,8 +1750,8 @@ static void utf_to_win1250(unsigned char *utf, unsigned char *euc, int len) { - utf_to_local(utf, euc, ULmapWIN1250, - sizeof(ULmapWIN1250) / sizeof(pg_utf_to_local), len); + utf_to_local(utf, euc, ULmapWIN1250, + sizeof(ULmapWIN1250) / sizeof(pg_utf_to_local), len); } /* @@ -1760,8 +1760,8 @@ utf_to_win1250(unsigned char *utf, unsigned char *euc, int len) static void win1250_to_utf(unsigned char *euc, unsigned char *utf, int len) { - local_to_utf(euc, utf, LUmapWIN1250, - sizeof(LUmapWIN1250) / sizeof(pg_local_to_utf), PG_WIN1250, len); + local_to_utf(euc, utf, LUmapWIN1250, + sizeof(LUmapWIN1250) / sizeof(pg_local_to_utf), PG_WIN1250, len); } /* @@ -1771,8 +1771,8 @@ static void utf_to_win1256(unsigned char *utf, unsigned char *euc, int len) { - utf_to_local(utf, euc, ULmapWIN1256, - sizeof(ULmapWIN1256) / sizeof(pg_utf_to_local), len); + utf_to_local(utf, euc, ULmapWIN1256, + sizeof(ULmapWIN1256) / sizeof(pg_utf_to_local), len); } /* diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index dc6dedab755..ee1926a56de 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -4,7 +4,7 @@ * Support for grand unified configuration scheme, including SET * command, configuration file, and command line options. * - * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.61 2002/03/02 21:39:34 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.62 2002/03/06 06:10:27 momjian Exp $ * * Copyright 2000 by PostgreSQL Global Development Group * Written by Peter Eisentraut <peter_e@gmx.net>. @@ -896,7 +896,7 @@ set_config_option(const char *name, const char *value, if (context == PGC_SIGHUP) elevel = DEBUG1; else if (guc_session_init) - elevel = NOTICE; + elevel = INFO; else elevel = ERROR; @@ -1259,7 +1259,7 @@ _ShowOption(enum config_type opttype, struct config_generic * record) default: val = "???"; } - elog(NOTICE, "%s is %s", record->name, val); + elog(INFO, "%s is %s", record->name, val); } void @@ -1408,13 +1408,13 @@ ProcessGUCArray(ArrayType *array, GucSource source) ParseLongOption(s, &name, &value); if (!value) { - elog(NOTICE, "cannot to parse setting \"%s\"", name); - continue; + elog(WARNING, "cannot to parse setting \"%s\"", name); + continue; } /* prevent errors from incorrect options */ guc_session_init = true; - + SetConfigOption(name, value, PGC_SUSET, source); guc_session_init = false; @@ -1441,7 +1441,7 @@ GUCArrayAdd(ArrayType *array, const char *name, const char *value) newval = palloc(strlen(name) + 1 + strlen(value) + 1); sprintf(newval, "%s=%s", name, value); datum = DirectFunctionCall1(textin, CStringGetDatum(newval)); - + if (array) { int index; diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample index f1b7676b4f2..3b59cbec633 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -113,10 +113,11 @@ #server_min_messages = notice # Values, in order of decreasing detail: # debug5, debug4, debug3, debug2, debug1, - # info, notice, error, log, fatal, panic -#client_min_messages = info # Values, in order of decreasing detail: + # info, notice, warning, error, log, fatal, + # panic +#client_min_messages = notice # Values, in order of decreasing detail: # debug5, debug4, debug3, debug2, debug1, - # log, info, notice, error + # log, notice, warning, error #silent_mode = false #log_connections = false diff --git a/src/backend/utils/mmgr/aset.c b/src/backend/utils/mmgr/aset.c index 317555f0ac4..5459d317986 100644 --- a/src/backend/utils/mmgr/aset.c +++ b/src/backend/utils/mmgr/aset.c @@ -11,7 +11,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/aset.c,v 1.44 2001/11/05 17:46:30 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/aset.c,v 1.45 2002/03/06 06:10:29 momjian Exp $ * * NOTE: * This is a new (Feb. 05, 1999) implementation of the allocation set @@ -736,7 +736,7 @@ AllocSetFree(MemoryContext context, void *pointer) /* Test for someone scribbling on unused space in chunk */ if (chunk->requested_size < chunk->size) if (((char *) pointer)[chunk->requested_size] != 0x7E) - elog(NOTICE, "AllocSetFree: detected write past chunk end in %s %p", + elog(WARNING, "AllocSetFree: detected write past chunk end in %s %p", set->header.name, chunk); #endif @@ -811,7 +811,7 @@ AllocSetRealloc(MemoryContext context, void *pointer, Size size) /* Test for someone scribbling on unused space in chunk */ if (chunk->requested_size < oldsize) if (((char *) pointer)[chunk->requested_size] != 0x7E) - elog(NOTICE, "AllocSetRealloc: detected write past chunk end in %s %p", + elog(WARNING, "AllocSetRealloc: detected write past chunk end in %s %p", set->header.name, chunk); #endif @@ -997,7 +997,7 @@ AllocSetStats(MemoryContext context) * AllocSetCheck * Walk through chunks and check consistency of memory. * - * NOTE: report errors as NOTICE, *not* ERROR or FATAL. Otherwise you'll + * NOTE: report errors as WARNING, *not* ERROR or FATAL. Otherwise you'll * find yourself in an infinite loop when trouble occurs, because this * routine will be entered again when elog cleanup tries to release memory! */ @@ -1021,7 +1021,7 @@ AllocSetCheck(MemoryContext context) if (!blk_used) { if (set->keeper != block) - elog(NOTICE, "AllocSetCheck: %s: empty block %p", + elog(WARNING, "AllocSetCheck: %s: empty block %p", name, block); } @@ -1043,16 +1043,16 @@ AllocSetCheck(MemoryContext context) * Check chunk size */ if (dsize > chsize) - elog(NOTICE, "AllocSetCheck: %s: req size > alloc size for chunk %p in block %p", + elog(WARNING, "AllocSetCheck: %s: req size > alloc size for chunk %p in block %p", name, chunk, block); if (chsize < (1 << ALLOC_MINBITS)) - elog(NOTICE, "AllocSetCheck: %s: bad size %lu for chunk %p in block %p", + elog(WARNING, "AllocSetCheck: %s: bad size %lu for chunk %p in block %p", name, (unsigned long) chsize, chunk, block); /* single-chunk block? */ if (chsize > ALLOC_CHUNK_LIMIT && chsize + ALLOC_CHUNKHDRSZ != blk_used) - elog(NOTICE, "AllocSetCheck: %s: bad single-chunk %p in block %p", + elog(WARNING, "AllocSetCheck: %s: bad single-chunk %p in block %p", name, chunk, block); /* @@ -1061,14 +1061,14 @@ AllocSetCheck(MemoryContext context) * check as easily...) */ if (dsize > 0 && chunk->aset != (void *) set) - elog(NOTICE, "AllocSetCheck: %s: bogus aset link in block %p, chunk %p", + elog(WARNING, "AllocSetCheck: %s: bogus aset link in block %p, chunk %p", name, block, chunk); /* * Check for overwrite of "unallocated" space in chunk */ if (dsize > 0 && dsize < chsize && *chdata_end != 0x7E) - elog(NOTICE, "AllocSetCheck: %s: detected write past chunk end in block %p, chunk %p", + elog(WARNING, "AllocSetCheck: %s: detected write past chunk end in block %p, chunk %p", name, block, chunk); blk_data += chsize; @@ -1078,7 +1078,7 @@ AllocSetCheck(MemoryContext context) } if ((blk_data + (nchunks * ALLOC_CHUNKHDRSZ)) != blk_used) - elog(NOTICE, "AllocSetCheck: %s: found inconsistent memory block %p", + elog(WARNING, "AllocSetCheck: %s: found inconsistent memory block %p", name, block); } } diff --git a/src/backend/utils/mmgr/portalmem.c b/src/backend/utils/mmgr/portalmem.c index 7b04a0e036a..318827ed957 100644 --- a/src/backend/utils/mmgr/portalmem.c +++ b/src/backend/utils/mmgr/portalmem.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.46 2002/02/27 19:35:35 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.47 2002/03/06 06:10:29 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -77,7 +77,7 @@ do { \ if (hentry == NULL) \ elog(ERROR, "out of memory in PortalHashTable"); \ if (found) \ - elog(NOTICE, "trying to insert a portal name that exists."); \ + elog(WARNING, "trying to insert a portal name that exists."); \ hentry->portal = PORTAL; \ } while(0) @@ -90,7 +90,7 @@ do { \ hentry = (PortalHashEnt*)hash_search(PortalHashTable, \ key, HASH_REMOVE, NULL); \ if (hentry == NULL) \ - elog(NOTICE, "trying to delete portal name that does not exist."); \ + elog(WARNING, "trying to delete portal name that does not exist."); \ } while(0) static MemoryContext PortalMemory = NULL; @@ -182,7 +182,7 @@ PortalSetQuery(Portal portal, * Exceptions: * BadState if called when disabled. * BadArg if portal name is invalid. - * "NOTICE" if portal name is in use (existing portal is returned!) + * "WARNING" if portal name is in use (existing portal is returned!) */ Portal CreatePortal(char *name) @@ -194,7 +194,7 @@ CreatePortal(char *name) portal = GetPortalByName(name); if (PortalIsValid(portal)) { - elog(NOTICE, "CreatePortal: portal \"%s\" already exists", name); + elog(WARNING, "CreatePortal: portal \"%s\" already exists", name); return portal; } |