11/**********************************************************************
22 * plperl.c - perl as a procedural language for PostgreSQL
33 *
4- * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.144 2009/01/07 13:44:37 tgl Exp $
4+ * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.145 2009/02/19 10:33:17 petere Exp $
55 *
66 **********************************************************************/
77
@@ -199,7 +199,7 @@ _PG_init(void)
199199pg_bindtextdomain (TEXTDOMAIN );
200200
201201DefineCustomBoolVariable ("plperl.use_strict" ,
202- gettext_noop ("If true,will compile trusted and untrustedperl code in strict mode" ),
202+ gettext_noop ("If true, trusted and untrustedPerl codewill be compiled in strict mode. " ),
203203NULL ,
204204& plperl_use_strict ,
205205 false,
@@ -913,7 +913,7 @@ plperl_validator(PG_FUNCTION_ARGS)
913913proc -> prorettype != VOIDOID )
914914ereport (ERROR ,
915915(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
916- errmsg ("plperl functions cannot return type %s" ,
916+ errmsg ("PL/Perl functions cannot return type %s" ,
917917format_type_be (proc -> prorettype ))));
918918}
919919
@@ -925,7 +925,7 @@ plperl_validator(PG_FUNCTION_ARGS)
925925if (get_typtype (argtypes [i ])== TYPTYPE_PSEUDO )
926926ereport (ERROR ,
927927(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
928- errmsg ("plperl functions cannottake type %s" ,
928+ errmsg ("PL/Perl functions cannotaccept type %s" ,
929929format_type_be (argtypes [i ]))));
930930}
931931
@@ -1280,7 +1280,7 @@ plperl_func_handler(PG_FUNCTION_ARGS)
12801280{
12811281ereport (ERROR ,
12821282(errcode (ERRCODE_DATATYPE_MISMATCH ),
1283- errmsg ("set-returning Perl function must return "
1283+ errmsg ("set-returningPL/ Perl function must return "
12841284"reference to array or use return_next" )));
12851285}
12861286
@@ -1313,7 +1313,7 @@ plperl_func_handler(PG_FUNCTION_ARGS)
13131313{
13141314ereport (ERROR ,
13151315(errcode (ERRCODE_DATATYPE_MISMATCH ),
1316- errmsg ("composite-returning Perl function "
1316+ errmsg ("composite-returningPL/ Perl function "
13171317"must return reference to hash" )));
13181318}
13191319
@@ -1438,7 +1438,7 @@ plperl_trigger_handler(PG_FUNCTION_ARGS)
14381438{
14391439ereport (WARNING ,
14401440(errcode (ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED ),
1441- errmsg ("ignoring modifiedtuple in DELETE trigger" )));
1441+ errmsg ("ignoring modifiedrow in DELETE trigger" )));
14421442trv = NULL ;
14431443}
14441444}
@@ -1447,7 +1447,7 @@ plperl_trigger_handler(PG_FUNCTION_ARGS)
14471447ereport (ERROR ,
14481448(errcode (ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED ),
14491449errmsg ("result of Perl trigger function must be undef, "
1450- "\"SKIP\" or \"MODIFY\"" )));
1450+ "\"SKIP\", or \"MODIFY\"" )));
14511451trv = NULL ;
14521452}
14531453retval = PointerGetDatum (trv );
@@ -1612,7 +1612,7 @@ compile_plperl_function(Oid fn_oid, bool is_trigger)
16121612free (prodesc );
16131613ereport (ERROR ,
16141614(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
1615- errmsg ("plperl functions cannot return type %s" ,
1615+ errmsg ("PL/Perl functions cannot return type %s" ,
16161616format_type_be (procStruct -> prorettype ))));
16171617}
16181618}
@@ -1659,7 +1659,7 @@ compile_plperl_function(Oid fn_oid, bool is_trigger)
16591659free (prodesc );
16601660ereport (ERROR ,
16611661(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
1662- errmsg ("plperl functions cannottake type %s" ,
1662+ errmsg ("PL/Perl functions cannotaccept type %s" ,
16631663format_type_be (procStruct -> proargtypes .values [i ]))));
16641664}
16651665
@@ -1902,7 +1902,7 @@ plperl_return_next(SV *sv)
19021902!(SvOK (sv )&& SvTYPE (sv )== SVt_RV && SvTYPE (SvRV (sv ))== SVt_PVHV ))
19031903ereport (ERROR ,
19041904(errcode (ERRCODE_DATATYPE_MISMATCH ),
1905- errmsg ("setof -composite-returning Perl function "
1905+ errmsg ("SETOF -composite-returningPL/ Perl function "
19061906"must call return_next with reference to hash" )));
19071907
19081908if (!current_call_data -> ret_tdesc )