mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
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.
This commit is contained in:
@ -4434,8 +4434,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,
|
||||
|
Reference in New Issue
Block a user