]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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)
commit1eeac95dc4a639c51ff6cc6e2ac6ae52dab32b32
tree9b9cfe8ed3471748f4c3b8ce051a00606745b312
parenta60b11327bbd4ae9f661563644a15b0c324f3d9d
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