Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4dbe72d

Browse files
committed
Fix come incorrect elog() messages in aclchk.c
Three error strings used with cache lookup failures were referring toincorrect object types for ACL checks:- Schemas- Types- Foreign ServersThere errors should never be triggered, but if they do incorrectinformation would be reported.Author: Justin PryzbyDiscussion:https://postgr.es/m/20221222153041.GN1153@telsasoft.comBackpatch-through: 11
1 parent4fceb45 commit4dbe72d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/catalog/aclchk.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5652,7 +5652,7 @@ recordExtObjInitPriv(Oid objoid, Oid classoid)
56525652

56535653
tuple=SearchSysCache1(FOREIGNSERVEROID,ObjectIdGetDatum(objoid));
56545654
if (!HeapTupleIsValid(tuple))
5655-
elog(ERROR,"cache lookup failed for foreigndata wrapper %u",
5655+
elog(ERROR,"cache lookup failed for foreignserver %u",
56565656
objoid);
56575657

56585658
aclDatum=SysCacheGetAttr(FOREIGNSERVEROID,tuple,
@@ -5738,7 +5738,7 @@ recordExtObjInitPriv(Oid objoid, Oid classoid)
57385738

57395739
tuple=SearchSysCache1(NAMESPACEOID,ObjectIdGetDatum(objoid));
57405740
if (!HeapTupleIsValid(tuple))
5741-
elog(ERROR,"cache lookup failed forfunction %u",objoid);
5741+
elog(ERROR,"cache lookup failed forschema %u",objoid);
57425742

57435743
aclDatum=SysCacheGetAttr(NAMESPACEOID,tuple,
57445744
Anum_pg_namespace_nspacl,&isNull);
@@ -5780,7 +5780,7 @@ recordExtObjInitPriv(Oid objoid, Oid classoid)
57805780

57815781
tuple=SearchSysCache1(TYPEOID,ObjectIdGetDatum(objoid));
57825782
if (!HeapTupleIsValid(tuple))
5783-
elog(ERROR,"cache lookup failed forfunction %u",objoid);
5783+
elog(ERROR,"cache lookup failed fortype %u",objoid);
57845784

57855785
aclDatum=SysCacheGetAttr(TYPEOID,tuple,Anum_pg_type_typacl,
57865786
&isNull);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp