11/**********************************************************************
22 * plperl.c - perl as a procedural language for PostgreSQL
33 *
4- * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.171 2010/03/09 22:34:38 tgl Exp $
4+ * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.172 2010/03/17 21:31:17 petere Exp $
55 *
66 **********************************************************************/
77
@@ -246,7 +246,7 @@ _PG_init(void)
246246NULL ,NULL );
247247
248248DefineCustomStringVariable ("plperl.on_init" ,
249- gettext_noop ("Perl initialization code to execute when aperl interpreter is initialized." ),
249+ gettext_noop ("Perl initialization code to execute when aPerl interpreter is initialized." ),
250250NULL ,
251251& plperl_on_init ,
252252NULL ,
@@ -422,7 +422,7 @@ select_perl_context(bool trusted)
422422if (SvTRUE (ERRSV ))
423423ereport (ERROR ,
424424(errmsg ("%s" ,strip_trailing_ws (SvPV_nolen (ERRSV ))),
425- errdetail ( "While executing PostgreSQL::InServer::SPI::bootstrap. " )));
425+ errcontext ( "while executing PostgreSQL::InServer::SPI::bootstrap" )));
426426}
427427
428428/*
@@ -560,12 +560,12 @@ plperl_init_interp(void)
560560nargs ,embedding ,NULL )!= 0 )
561561ereport (ERROR ,
562562(errmsg ("%s" ,strip_trailing_ws (SvPV_nolen (ERRSV ))),
563- errcontext ("While parsingperl initialization. " )));
563+ errcontext ("while parsingPerl initialization" )));
564564
565565if (perl_run (plperl )!= 0 )
566566ereport (ERROR ,
567567(errmsg ("%s" ,strip_trailing_ws (SvPV_nolen (ERRSV ))),
568- errcontext ("While runningperl initialization. " )));
568+ errcontext ("while runningPerl initialization" )));
569569
570570#ifdef WIN32
571571
@@ -703,15 +703,15 @@ plperl_trusted_init(void)
703703if (SvTRUE (ERRSV ))
704704ereport (ERROR ,
705705(errmsg ("%s" ,strip_trailing_ws (SvPV_nolen (ERRSV ))),
706- errcontext ("While executing PLC_SAFE_BAD. " )));
706+ errcontext ("while executing PLC_SAFE_BAD" )));
707707}
708708else
709709{
710710eval_pv (PLC_SAFE_OK , FALSE);
711711if (SvTRUE (ERRSV ))
712712ereport (ERROR ,
713713(errmsg ("%s" ,strip_trailing_ws (SvPV_nolen (ERRSV ))),
714- errcontext ("While executing PLC_SAFE_OK. " )));
714+ errcontext ("while executing PLC_SAFE_OK" )));
715715
716716if (GetDatabaseEncoding ()== PG_UTF8 )
717717{
@@ -724,7 +724,7 @@ plperl_trusted_init(void)
724724if (SvTRUE (ERRSV ))
725725ereport (ERROR ,
726726(errmsg ("%s" ,strip_trailing_ws (SvPV_nolen (ERRSV ))),
727- errcontext ("While executing utf8fix. " )));
727+ errcontext ("while executing utf8fix" )));
728728}
729729
730730/* switch to the safe require opcode */
@@ -744,7 +744,7 @@ plperl_trusted_init(void)
744744if (SvTRUE (ERRSV ))
745745ereport (ERROR ,
746746(errmsg ("%s" ,strip_trailing_ws (SvPV_nolen (ERRSV ))),
747- errcontext ("While executing plperl.on_plperl_init. " )));
747+ errcontext ("while executing plperl.on_plperl_init" )));
748748}
749749
750750}
@@ -760,7 +760,7 @@ plperl_untrusted_init(void)
760760if (SvTRUE (ERRSV ))
761761ereport (ERROR ,
762762(errmsg ("%s" ,strip_trailing_ws (SvPV_nolen (ERRSV ))),
763- errcontext ("While executing plperl.on_plperlu_init. " )));
763+ errcontext ("while executing plperl.on_plperlu_init" )));
764764}
765765}
766766