99 *
1010 *
1111 * IDENTIFICATION
12- * $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.23 2002/10/04 22:08:44 tgl Exp $
12+ * $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.24 2002/11/01 19:19:58 tgl Exp $
1313 *
1414 * DESCRIPTION
1515 * These routines take the parse tree and pick out the
6262 * doesn't exist yet. (Without this, there's no way to define the I/O procs
6363 * for a new type.) But SQL function creation won't cope, so error out if
6464 * the target language is SQL.(We do this here, not in the SQL-function
65- * validator, so as not to produce aWARNING and then an ERROR for the same
65+ * validator, so as not to produce aNOTICE and then an ERROR for the same
6666 * condition.)
6767 */
6868static void
@@ -81,7 +81,7 @@ compute_return_type(TypeName *returnType, Oid languageOid,
8181elog (ERROR ,"SQL function cannot return shell type \"%s\"" ,
8282TypeNameToString (returnType ));
8383else
84- elog (WARNING ,"Return type \"%s\" is only a shell" ,
84+ elog (NOTICE ,"Return type \"%s\" is only a shell" ,
8585TypeNameToString (returnType ));
8686}
8787}
@@ -103,7 +103,7 @@ compute_return_type(TypeName *returnType, Oid languageOid,
103103elog (ERROR ,"Type \"%s\" does not exist" ,typnam );
104104
105105/* Otherwise, go ahead and make a shell type */
106- elog (WARNING ,"ProcedureCreate: type %s is not yet defined" ,
106+ elog (NOTICE ,"ProcedureCreate: type %s is not yet defined" ,
107107typnam );
108108namespaceId = QualifiedNameGetCreationNamespace (returnType -> names ,
109109& typname );
@@ -150,7 +150,7 @@ compute_parameter_types(List *argTypes, Oid languageOid,
150150elog (ERROR ,"SQL function cannot accept shell type \"%s\"" ,
151151TypeNameToString (t ));
152152else
153- elog (WARNING ,"Argument type \"%s\" is only a shell" ,
153+ elog (NOTICE ,"Argument type \"%s\" is only a shell" ,
154154TypeNameToString (t ));
155155}
156156}
@@ -518,8 +518,8 @@ RemoveFunction(RemoveFuncStmt *stmt)
518518
519519if (((Form_pg_proc )GETSTRUCT (tup ))-> prolang == INTERNALlanguageId )
520520{
521- /* "Helpful"WARNING when removing a builtin function ... */
522- elog (WARNING ,"Removing built-in function \"%s\"" ,
521+ /* "Helpful"NOTICE when removing a builtin function ... */
522+ elog (NOTICE ,"Removing built-in function \"%s\"" ,
523523NameListToString (functionName ));
524524}
525525