From: Robert Haas Date: Thu, 21 Apr 2011 02:23:58 +0000 (-0400) Subject: Fix use of incorrect constant RemoveRoleFromObjectACL. X-Git-Tag: REL9_1_BETA1~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ede427938e9676d0e497406c213f098303a93f3;p=postgresql Fix use of incorrect constant RemoveRoleFromObjectACL. This could cause failures when DROP OWNED BY attempt to remove default privileges on sequences. Back-patching to 9.0. Shigeru Hanada --- diff --git a/src/backend/catalog/aclchk.c b/src/backend/catalog/aclchk.c index 693b634398..db58ec29f6 100644 --- a/src/backend/catalog/aclchk.c +++ b/src/backend/catalog/aclchk.c @@ -1299,7 +1299,7 @@ RemoveRoleFromObjectACL(Oid roleid, Oid classid, Oid objid) case DEFACLOBJ_RELATION: iacls.objtype = ACL_OBJECT_RELATION; break; - case ACL_OBJECT_SEQUENCE: + case DEFACLOBJ_SEQUENCE: iacls.objtype = ACL_OBJECT_SEQUENCE; break; case DEFACLOBJ_FUNCTION: