Fix come incorrect elog() messages in aclchk.c
authorMichael Paquier <michael@paquier.xyz>
Fri, 23 Dec 2022 01:04:18 +0000 (10:04 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 23 Dec 2022 01:04:18 +0000 (10:04 +0900)
commit2fcf685f6daa4f872ca726e25cc504a544916dbb
tree16d85964b4c919636f06ae2e885e3afb4b57c1ff
parent13e0d7a603852b8b05c03b45228daabffa0cced2
Fix come incorrect elog() messages in aclchk.c

Three error strings used with cache lookup failures were referring to
incorrect object types for ACL checks:
- Schemas
- Types
- Foreign Servers
There errors should never be triggered, but if they do incorrect
information would be reported.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20221222153041.GN1153@telsasoft.com
Backpatch-through: 11
src/backend/catalog/aclchk.c