pgsql: Change some errdetail() to errdetail_internal()

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Change some errdetail() to errdetail_internal()
Date: 2022-09-28 15:19:36
Message-ID: E1odYqV-002PMJ-MO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Change some errdetail() to errdetail_internal()

This prevents marking the argument string for translation for gettext,
and it also prevents the given string (which is already translated) from
being translated at runtime.

Also, mark the strings used as arguments to check_rolespec_name for
translation.

Backpatch all the way back as appropriate. None of this is caught by
any tests (necessarily so), so I verified it manually.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d84a7b290f866b3f16cbefb0fca31b69ebace98a

Modified Files
--------------
src/backend/catalog/dependency.c | 6 +++---
src/backend/commands/publicationcmds.c | 2 +-
src/backend/commands/user.c | 4 ++--
src/backend/utils/adt/acl.c | 4 ++--
src/backend/utils/adt/jsonfuncs.c | 4 ++--
src/common/jsonapi.c | 4 ++--
6 files changed, 12 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-09-28 15:23:39 pgsql: Allow callback functions to deregister themselves during a call.
Previous Message Robert Haas 2022-09-28 15:01:52 pgsql: Fix bug in DROP OWNED BY.