9
9
*
10
10
*
11
11
* 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 $
13
13
*
14
14
* DESCRIPTION
15
15
* These routines take the parse tree and pick out the
62
62
* doesn't exist yet. (Without this, there's no way to define the I/O procs
63
63
* for a new type.) But SQL function creation won't cope, so error out if
64
64
* the target language is SQL. (We do this here, not in the SQL-function
65
- * validator, so as not to produce a WARNING and then an ERROR for the same
65
+ * validator, so as not to produce a NOTICE and then an ERROR for the same
66
66
* condition.)
67
67
*/
68
68
static void
@@ -81,7 +81,7 @@ compute_return_type(TypeName *returnType, Oid languageOid,
81
81
elog (ERROR , "SQL function cannot return shell type \"%s\"" ,
82
82
TypeNameToString (returnType ));
83
83
else
84
- elog (WARNING , "Return type \"%s\" is only a shell" ,
84
+ elog (NOTICE , "Return type \"%s\" is only a shell" ,
85
85
TypeNameToString (returnType ));
86
86
}
87
87
}
@@ -103,7 +103,7 @@ compute_return_type(TypeName *returnType, Oid languageOid,
103
103
elog (ERROR , "Type \"%s\" does not exist" , typnam );
104
104
105
105
/* 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" ,
107
107
typnam );
108
108
namespaceId = QualifiedNameGetCreationNamespace (returnType -> names ,
109
109
& typname );
@@ -150,7 +150,7 @@ compute_parameter_types(List *argTypes, Oid languageOid,
150
150
elog (ERROR , "SQL function cannot accept shell type \"%s\"" ,
151
151
TypeNameToString (t ));
152
152
else
153
- elog (WARNING , "Argument type \"%s\" is only a shell" ,
153
+ elog (NOTICE , "Argument type \"%s\" is only a shell" ,
154
154
TypeNameToString (t ));
155
155
}
156
156
}
@@ -518,8 +518,8 @@ RemoveFunction(RemoveFuncStmt *stmt)
518
518
519
519
if (((Form_pg_proc ) GETSTRUCT (tup ))-> prolang == INTERNALlanguageId )
520
520
{
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\"" ,
523
523
NameListToString (functionName ));
524
524
}
525
525
0 commit comments