Skip site navigation (1) Skip section navigation (2)

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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Replace errdetail("%s", ...) with errdetail_internal("%s",...).
Date: 2011-07-16 18:23:38
Message-ID: E1Qi9Wc-0005wA-SA@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
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(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2011-07-16 20:47:09
Subject: pgsql: Improve make_subplanTargetList to avoid including Varsunnecessa
Previous:From: Magnus HaganderDate: 2011-07-16 18:04:02
Subject: pgsql: Fix SSPI login when multiple roundtrips are required

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group