Skip to content

Commit 533073c

Browse files
committed
Add missing support for removing foreign data wrapper / server privileges
belonging to a user at DROP OWNED BY. Foreign data wrappers and servers don't do anything useful yet, which is why no-one has noticed, but since we have them, seems prudent to fix this. Per report from Chetan Suttraway. Backpatch to 9.0, 8.4 has the same problem but this patch didn't apply there so I'm not going to bother.
1 parent 9dba66c commit 533073c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/backend/catalog/aclchk.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,12 @@ RemoveRoleFromObjectACL(Oid roleid, Oid classid, Oid objid)
13861386
case TableSpaceRelationId:
13871387
istmt.objtype = ACL_OBJECT_TABLESPACE;
13881388
break;
1389+
case ForeignServerRelationId:
1390+
istmt.objtype = ACL_OBJECT_FOREIGN_SERVER;
1391+
break;
1392+
case ForeignDataWrapperRelationId:
1393+
istmt.objtype = ACL_OBJECT_FDW;
1394+
break;
13891395
default:
13901396
elog(ERROR, "unexpected object class %u", classid);
13911397
break;

0 commit comments

Comments
 (0)