diff options
author | Tom Lane | 2011-07-16 18:21:12 +0000 |
---|---|---|
committer | Tom Lane | 2011-07-16 18:22:18 +0000 |
commit | 1af37ec96d97722aeb527f5f43d6f6f2304f0861 (patch) | |
tree | c62658c6f2b199c9a38489b91053f9a17f070a1b /src/pl/plpython/plpython.c | |
parent | 3ee7c8710defb63490d90cfff09a773d764aa05d (diff) |
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.
Diffstat (limited to 'src/pl/plpython/plpython.c')
-rw-r--r-- | src/pl/plpython/plpython.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index 0227f1a1829..e03d7cead0a 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, |