Change some errdetail() to errdetail_internal()
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 28 Sep 2022 15:14:53 +0000 (17:14 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 28 Sep 2022 15:14:53 +0000 (17:14 +0200)
commitd84a7b290f866b3f16cbefb0fca31b69ebace98a
treea966b86fd39d18e06d7d1306ef735d50e6f89aa8
parent7188b9b0fdbb4dd99915626f171d820a56b98514
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.
src/backend/catalog/dependency.c
src/backend/commands/publicationcmds.c
src/backend/commands/user.c
src/backend/utils/adt/acl.c
src/backend/utils/adt/jsonfuncs.c
src/common/jsonapi.c