From 1af37ec96d97722aeb527f5f43d6f6f2304f0861 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 16 Jul 2011 14:21:12 -0400 Subject: Replace errdetail("%s", ...) with errdetail_internal("%s", ...). There may be some other places where we should use errdetail_internal, but they'll have to be evaluated case-by-case. This commit just hits a bunch of places where invoking gettext is obviously a waste of cycles. --- src/pl/plpython/plpython.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pl/plpython/plpython.c') diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index 0227f1a182..e03d7cead0 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -4435,8 +4435,8 @@ PLy_elog(int elevel, const char *fmt,...) PG_TRY(); { ereport(elevel, - (errmsg("%s", primary ? primary : "no exception data"), - (detail) ? errdetail("%s", detail) : 0, + (errmsg_internal("%s", primary ? primary : "no exception data"), + (detail) ? errdetail_internal("%s", detail) : 0, (tb_depth > 0 && tbmsg) ? errcontext("%s", tbmsg) : 0, (hint) ? errhint("%s", hint) : 0, (query) ? internalerrquery(query) : 0, -- cgit v1.2.1