Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e356743

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 542bdb2 commit e356743

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
@@ -1340,6 +1340,12 @@ RemoveRoleFromObjectACL(Oid roleid, Oid classid, Oid objid)
13401340
case TableSpaceRelationId:
13411341
istmt.objtype = ACL_OBJECT_TABLESPACE;
13421342
break;
1343+
case ForeignServerRelationId:
1344+
istmt.objtype = ACL_OBJECT_FOREIGN_SERVER;
1345+
break;
1346+
case ForeignDataWrapperRelationId:
1347+
istmt.objtype = ACL_OBJECT_FDW;
1348+
break;
13431349
default:
13441350
elog(ERROR, "unexpected object class %u", classid);
13451351
break;

0 commit comments

Comments
 (0)