Replace errdetail("%s", ...) with errdetail_internal("%s", ...).
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/dblink/dblink.c | modified | +5 −4 |
| src/backend/commands/trigger.c | modified | +3 −3 |
| src/backend/commands/user.c | modified | +1 −1 |
| src/backend/libpq/auth.c | modified | +3 −3 |
| src/backend/nodes/print.c | modified | +1 −1 |
| src/backend/storage/lmgr/deadlock.c | modified | +1 −1 |
| src/backend/tcop/postgres.c | modified | +1 −1 |
| src/backend/utils/adt/xml.c | modified | +4 −4 |
| src/backend/utils/fmgr/dfmgr.c | modified | +1 −1 |
| src/backend/utils/misc/guc.c | modified | +10 −10 |
| src/pl/plpgsql/src/pl_exec.c | modified | +1 −1 |
| src/pl/plpython/plpython.c | modified | +2 −2 |