summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-11-12 15:19:14 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-11-12 15:30:19 +0200
commit533073cf2321bb9fd3ec983443e41b7040f2771b (patch)
treefedf8e0f528d53a80304fb8bc2bb0977fbd8f803 /src
parent9dba66c0e5248ad70f0a45b1b39ece6b1f549d53 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/catalog/aclchk.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/backend/catalog/aclchk.c b/src/backend/catalog/aclchk.c
index 0470a702739..9b5602ed004 100644
--- a/src/backend/catalog/aclchk.c
+++ b/src/backend/catalog/aclchk.c
@@ -1386,6 +1386,12 @@ RemoveRoleFromObjectACL(Oid roleid, Oid classid, Oid objid)
case TableSpaceRelationId:
istmt.objtype = ACL_OBJECT_TABLESPACE;
break;
+ case ForeignServerRelationId:
+ istmt.objtype = ACL_OBJECT_FOREIGN_SERVER;
+ break;
+ case ForeignDataWrapperRelationId:
+ istmt.objtype = ACL_OBJECT_FDW;
+ break;
default:
elog(ERROR, "unexpected object class %u", classid);
break;