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/plpgsql | |
| 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/plpgsql')
| -rw-r--r-- | src/pl/plpgsql/src/pl_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c index 7f948d5f808..b7ffb717f9a 100644 --- a/src/pl/plpgsql/src/pl_exec.c +++ b/src/pl/plpgsql/src/pl_exec.c @@ -2792,7 +2792,7 @@ exec_stmt_raise(PLpgSQL_execstate *estate, PLpgSQL_stmt_raise *stmt) ereport(stmt->elog_level, (err_code ? errcode(err_code) : 0, errmsg_internal("%s", err_message), - (err_detail != NULL) ? errdetail("%s", err_detail) : 0, + (err_detail != NULL) ? errdetail_internal("%s", err_detail) : 0, (err_hint != NULL) ? errhint("%s", err_hint) : 0)); estate->err_text = NULL; /* un-suppress... */ |
