developed on -hackers.
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.37 2003/09/29 00:05:24 petere Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.38 2003/10/02 06:34:03 petere Exp $
  *
  * DESCRIPTION
  *   These routines take the parse tree and pick out the
  *
  * This is presently only used for adjusting legacy functions that return
  * OPAQUE to return whatever we find their correct definition should be.
- * The caller should emit a suitable NOTICE explaining what we did.
+ * The caller should emit a suitable warning explaining what we did.
  */
 void
 SetFunctionReturnType(Oid funcOid, Oid newRetType)
 
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.113 2003/09/29 16:37:29 petere Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.114 2003/10/02 06:34:03 petere Exp $
  *
  *-------------------------------------------------------------------------
  */
    ReleaseSysCache(tuple);
 
    if (!reindex_relation(heapOid))
-       ereport(WARNING,
+       ereport(NOTICE,
                (errmsg("table \"%s\" has no indexes",
                        relation->relname)));
 }
 
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/proclang.c,v 1.50 2003/09/25 06:57:58 petere Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/proclang.c,v 1.51 2003/10/02 06:34:03 petere Exp $
  *
  *-------------------------------------------------------------------------
  */
         */
        if (funcrettype == OPAQUEOID)
        {
-           ereport(NOTICE,
+           ereport(WARNING,
                    (errcode(ERRCODE_WRONG_OBJECT_TYPE),
                     errmsg("changing return type of function %s from \"opaque\" to \"language_handler\"",
                            NameListToString(stmt->plhandler))));
 
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.158 2003/09/25 18:58:35 tgl Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.159 2003/10/02 06:34:03 petere Exp $
  *
  *-------------------------------------------------------------------------
  */
         */
        if (funcrettype == OPAQUEOID)
        {
-           ereport(NOTICE,
+           ereport(WARNING,
                    (errmsg("changing return type of function %s from \"opaque\" to \"trigger\"",
                            NameListToString(stmt->funcname))));
            SetFunctionReturnType(funcoid, TRIGGEROID);
 
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/typecmds.c,v 1.47 2003/09/29 00:05:25 petere Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/typecmds.c,v 1.48 2003/10/02 06:34:03 petere Exp $
  *
  * DESCRIPTION
  *   The "DefineFoo" routines take the parse tree and pick out the
        if (resulttype == OPAQUEOID)
        {
            /* backwards-compatibility hack */
-           ereport(NOTICE,
+           ereport(WARNING,
                    (errmsg("changing return type of function %s from \"opaque\" to %s",
                            NameListToString(inputName), typeName)));
            SetFunctionReturnType(inputOid, typoid);
        if (resulttype == OPAQUEOID)
        {
            /* backwards-compatibility hack */
-           ereport(NOTICE,
+           ereport(WARNING,
                    (errmsg("changing return type of function %s from \"opaque\" to \"cstring\"",
                            NameListToString(outputName))));
            SetFunctionReturnType(outputOid, CSTRINGOID);
     * three arguments (string, element OID, typmod).
     *
     * For backwards compatibility we allow OPAQUE in place of CSTRING; if we
-    * see this, we issue a NOTICE and fix up the pg_proc entry.
+    * see this, we issue a warning and fix up the pg_proc entry.
     */
    MemSet(argList, 0, FUNC_MAX_ARGS * sizeof(Oid));
 
    if (OidIsValid(procOid))
    {
        /* Found, but must complain and fix the pg_proc entry */
-       ereport(NOTICE,
+       ereport(WARNING,
                (errmsg("changing argument type of function %s from \"opaque\" to \"cstring\"",
                        NameListToString(procname))));
        SetFunctionArgType(procOid, 0, CSTRINGOID);
     * arguments (data value, element OID).
     *
     * For backwards compatibility we allow OPAQUE in place of the actual
-    * type name; if we see this, we issue a NOTICE and fix up the pg_proc
+    * type name; if we see this, we issue a warning and fix up the pg_proc
     * entry.
     */
    MemSet(argList, 0, FUNC_MAX_ARGS * sizeof(Oid));
    if (OidIsValid(procOid))
    {
        /* Found, but must complain and fix the pg_proc entry */
-       ereport(NOTICE,
+       ereport(WARNING,
        (errmsg("changing argument type of function %s from \"opaque\" to %s",
                NameListToString(procname), format_type_be(typeOid))));
        SetFunctionArgType(procOid, 0, typeOid);
 
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.435 2003/09/26 15:27:32 petere Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.436 2003/10/02 06:34:04 petere Exp $
  *
  * HISTORY
  *   AUTHOR            DATE            MAJOR EVENT
                                        $3)));
                    if ($3 > MAX_INTERVAL_PRECISION)
                    {
-                       ereport(NOTICE,
+                       ereport(WARNING,
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                                 errmsg("INTERVAL(%d) precision reduced to maximum allowed, %d",
                                        $3, MAX_INTERVAL_PRECISION)));
                                        $3)));
                    if ($3 > MAX_INTERVAL_PRECISION)
                    {
-                       ereport(NOTICE,
+                       ereport(WARNING,
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                                 errmsg("INTERVAL(%d) precision reduced to maximum allowed, %d",
                                        $3, MAX_INTERVAL_PRECISION)));
                                        $3, ($5 ? " WITH TIME ZONE": ""))));
                    if ($3 > MAX_TIMESTAMP_PRECISION)
                    {
-                       ereport(NOTICE,
+                       ereport(WARNING,
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                                 errmsg("TIMESTAMP(%d)%s precision reduced to maximum allowed, %d",
                                        $3, ($5 ? " WITH TIME ZONE": ""),
                                        $3, ($5 ? " WITH TIME ZONE": ""))));
                    if ($3 > MAX_TIME_PRECISION)
                    {
-                       ereport(NOTICE,
+                       ereport(WARNING,
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                                 errmsg("TIME(%d)%s precision reduced to maximum allowed, %d",
                                        $3, ($5 ? " WITH TIME ZONE": ""),
                                        $3)));
                    if ($3 > MAX_TIME_PRECISION)
                    {
-                       ereport(NOTICE,
+                       ereport(WARNING,
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                                 errmsg("CURRENT_TIME(%d) precision reduced to maximum allowed, %d",
                                        $3, MAX_TIME_PRECISION)));
                                        $3)));
                    if ($3 > MAX_TIMESTAMP_PRECISION)
                    {
-                       ereport(NOTICE,
+                       ereport(WARNING,
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                                 errmsg("CURRENT_TIMESTAMP(%d) precision reduced to maximum allowed, %d",
                                        $3, MAX_TIMESTAMP_PRECISION)));
                                        $3)));
                    if ($3 > MAX_TIME_PRECISION)
                    {
-                       ereport(NOTICE,
+                       ereport(WARNING,
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                                 errmsg("LOCALTIME(%d) precision reduced to maximum allowed, %d",
                                        $3, MAX_TIME_PRECISION)));
                                        $3)));
                    if ($3 > MAX_TIMESTAMP_PRECISION)
                    {
-                       ereport(NOTICE,
+                       ereport(WARNING,
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                                 errmsg("LOCALTIMESTAMP(%d) precision reduced to maximum allowed, %d",
                                        $3, MAX_TIMESTAMP_PRECISION)));
                                        $3)));
                    if ($3 > MAX_INTERVAL_PRECISION)
                    {
-                       ereport(NOTICE,
+                       ereport(WARNING,
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                                 errmsg("INTERVAL(%d) precision reduced to maximum allowed, %d",
                                        $3, MAX_INTERVAL_PRECISION)));
 
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.368 2003/09/29 18:50:58 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.369 2003/10/02 06:34:04 petere Exp $
  *
  * NOTES
  *   this is the "main" module of the postgres backend and
    new_list = (List *) copyObject(querytree_list);
    /* This checks both copyObject() and the equal() routines... */
    if (!equal(new_list, querytree_list))
-       ereport(WARNING,
-          (errmsg("copyObject() failed to produce an equal parse tree")));
+       elog(WARNING, "copyObject() failed to produce an equal parse tree");
    else
        querytree_list = new_list;
 #endif
 #ifdef NOT_USED
        /* This checks both copyObject() and the equal() routines... */
        if (!equal(new_plan, plan))
-           ereport(WARNING,
-           (errmsg("copyObject() failed to produce an equal plan tree")));
+           elog(WARNING, "copyObject() failed to produce an equal plan tree");
        else
 #endif
            plan = new_plan;
    if (!IsUnderPostmaster)
    {
        puts("\nPOSTGRES backend interactive interface ");
-       puts("$Revision: 1.368 $ $Date: 2003/09/29 18:50:58 $\n");
+       puts("$Revision: 1.369 $ $Date: 2003/10/02 06:34:04 $\n");
    }
 
    /*
 
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.207 2003/09/24 18:54:01 tgl Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.208 2003/10/02 06:34:04 petere Exp $
  *
  *-------------------------------------------------------------------------
  */
            break;
 
        default:
-           elog(NOTICE, "unrecognized node type: %d",
+           elog(WARNING, "unrecognized node type: %d",
                 (int) nodeTag(parsetree));
            tag = "???";
            break;