From 1af37ec96d97722aeb527f5f43d6f6f2304f0861 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 16 Jul 2011 14:21:12 -0400 Subject: 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. --- src/backend/storage/lmgr/deadlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/storage') diff --git a/src/backend/storage/lmgr/deadlock.c b/src/backend/storage/lmgr/deadlock.c index 837f0296c61..7e7f6af21b7 100644 --- a/src/backend/storage/lmgr/deadlock.c +++ b/src/backend/storage/lmgr/deadlock.c @@ -939,7 +939,7 @@ DeadLockReport(void) ereport(ERROR, (errcode(ERRCODE_T_R_DEADLOCK_DETECTED), errmsg("deadlock detected"), - errdetail("%s", clientbuf.data), + errdetail_internal("%s", clientbuf.data), errdetail_log("%s", logbuf.data), errhint("See server log for query details."))); } -- cgit v1.2.3