Обсуждение: pgsql: Replace errdetail("%s", ...) with errdetail_internal("%s", ...).

Поиск
Список
Период
Сортировка

pgsql: Replace errdetail("%s", ...) with errdetail_internal("%s", ...).

От
Tom Lane
Дата:
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.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/fbd847a5877444f098cdbf270b967f8010a48838

Modified Files
--------------
contrib/dblink/dblink.c             |    9 +++++----
src/backend/commands/trigger.c      |    6 +++---
src/backend/commands/user.c         |    2 +-
src/backend/libpq/auth.c            |    6 +++---
src/backend/nodes/print.c           |    2 +-
src/backend/storage/lmgr/deadlock.c |    2 +-
src/backend/tcop/postgres.c         |    2 +-
src/backend/utils/adt/xml.c         |    8 ++++----
src/backend/utils/fmgr/dfmgr.c      |    2 +-
src/backend/utils/misc/guc.c        |   20 ++++++++++----------
src/pl/plpgsql/src/pl_exec.c        |    2 +-
src/pl/plpython/plpython.c          |    4 ++--
12 files changed, 33 insertions(+), 32 deletions(-)