@@ -450,14 +450,14 @@ DefineType(List *names, List *parameters)
450450{
451451/* backwards-compatibility hack */
452452ereport (WARNING ,
453- (errmsg ("changing return type of function %s from\"%s\" to\"%s\" " ,
453+ (errmsg ("changing return type of function %s from%s to%s " ,
454454NameListToString (inputName ),"opaque" ,typeName )));
455455SetFunctionReturnType (inputOid ,typoid );
456456}
457457else
458458ereport (ERROR ,
459459(errcode (ERRCODE_INVALID_OBJECT_DEFINITION ),
460- errmsg ("type input function %s must return type\"%s\" " ,
460+ errmsg ("type input function %s must return type%s " ,
461461NameListToString (inputName ),typeName )));
462462}
463463resulttype = get_func_rettype (outputOid );
@@ -467,14 +467,14 @@ DefineType(List *names, List *parameters)
467467{
468468/* backwards-compatibility hack */
469469ereport (WARNING ,
470- (errmsg ("changing return type of function %s from\"%s\" to\"%s\" " ,
470+ (errmsg ("changing return type of function %s from%s to%s " ,
471471NameListToString (outputName ),"opaque" ,"cstring" )));
472472SetFunctionReturnType (outputOid ,CSTRINGOID );
473473}
474474else
475475ereport (ERROR ,
476476(errcode (ERRCODE_INVALID_OBJECT_DEFINITION ),
477- errmsg ("type output function %s must return type\"%s\" " ,
477+ errmsg ("type output function %s must return type%s " ,
478478NameListToString (outputName ),"cstring" )));
479479}
480480if (receiveOid )
@@ -483,7 +483,7 @@ DefineType(List *names, List *parameters)
483483if (resulttype != typoid )
484484ereport (ERROR ,
485485(errcode (ERRCODE_INVALID_OBJECT_DEFINITION ),
486- errmsg ("type receive function %s must return type\"%s\" " ,
486+ errmsg ("type receive function %s must return type%s " ,
487487NameListToString (receiveName ),typeName )));
488488}
489489if (sendOid )
@@ -492,7 +492,7 @@ DefineType(List *names, List *parameters)
492492if (resulttype != BYTEAOID )
493493ereport (ERROR ,
494494(errcode (ERRCODE_INVALID_OBJECT_DEFINITION ),
495- errmsg ("type send function %s must return type\"%s\" " ,
495+ errmsg ("type send function %s must return type%s " ,
496496NameListToString (sendName ),"bytea" )));
497497}
498498
@@ -1834,7 +1834,7 @@ findTypeTypmodinFunction(List *procname)
18341834if (get_func_rettype (procOid )!= INT4OID )
18351835ereport (ERROR ,
18361836(errcode (ERRCODE_INVALID_OBJECT_DEFINITION ),
1837- errmsg ("typmod_in function %s must return type\"%s\" " ,
1837+ errmsg ("typmod_in function %s must return type%s " ,
18381838NameListToString (procname ),"integer" )));
18391839
18401840return procOid ;
@@ -1861,7 +1861,7 @@ findTypeTypmodoutFunction(List *procname)
18611861if (get_func_rettype (procOid )!= CSTRINGOID )
18621862ereport (ERROR ,
18631863(errcode (ERRCODE_INVALID_OBJECT_DEFINITION ),
1864- errmsg ("typmod_out function %s must return type\"%s\" " ,
1864+ errmsg ("typmod_out function %s must return type%s " ,
18651865NameListToString (procname ),"cstring" )));
18661866
18671867return procOid ;
@@ -1888,7 +1888,7 @@ findTypeAnalyzeFunction(List *procname, Oid typeOid)
18881888if (get_func_rettype (procOid )!= BOOLOID )
18891889ereport (ERROR ,
18901890(errcode (ERRCODE_INVALID_OBJECT_DEFINITION ),
1891- errmsg ("type analyze function %s must return type\"%s\" " ,
1891+ errmsg ("type analyze function %s must return type%s " ,
18921892NameListToString (procname ),"boolean" )));
18931893
18941894return procOid ;
@@ -2007,7 +2007,7 @@ findRangeSubtypeDiffFunction(List *procname, Oid subtype)
20072007if (get_func_rettype (procOid )!= FLOAT8OID )
20082008ereport (ERROR ,
20092009(errcode (ERRCODE_INVALID_OBJECT_DEFINITION ),
2010- errmsg ("range subtype diff function %s must return type\"%s\" " ,
2010+ errmsg ("range subtype diff function %s must return type%s " ,
20112011func_signature_string (procname ,2 ,NIL ,argList ),
20122012"double precision" )));
20132013